objective c - ios facebook get posted image by user -
I do not know how to post images by user. My code returns this username and user id, user image But I want to post the user posted images, please help me in the posted comment.
This is my code only for user information and it is working but the feed code is not working
if (FBSession.activeSession .isOpen) {NSLog (> "> <> gt; & gt; Facebook & gt; & gt; & gt; "); [[FBCAC Request Formation] Beginning End Handler: ^ (FBCACC Connection Connection *, NSDictionary & lt; FBGraphUser & gt; * User, NSError * Error) {if (! Error) {NSLog (@ "% @", user); User name = user.name; // NSLog (@ "% @", user name); // NSLog (@ "% @", user.id); User ID = user.id; // [Self saviuserid]; // [auto save name]; NSLog (@ "> gt;> Name: gt; & gt;% @", user.link); StringImage = [NSString stringWithFormat: @ "https://graph.facebook.com/%@/picture", user.id]; NSLog (@ "& gt; & gt; Image Link>>% @", String Image); // get NSString * fdfd = [NSString stringWithFormat: @ "https://graph.facebook.com/%@/feed", user.id]; NSLog (@ "> gt;> FSDD>>>% @", FDFD); If (checkfornextpage == true) {loginviewcontrolr * flip view controller = [[loginweak controller alloc] initWithNibName: @ "loginviewer controller" bundle: [nsbindal main bundle]]; FlipViewController.getUserimg = stringImage; FlipViewController.getUserName = Username; // [Self. Navigation controller Push ViewController: Animated Flip Visual Controller: Yes]; [Self-present ViewController: Animated Flip ViewController: Yes Completed: Zero]; } } other{ } }]; } Here is a code that is not working
NSString * fdfd = [NSString stringWithFormat: @ "https: //graph.facebook .com /% @ / feed ", user.id]; NSLog (@ "> gt;> FSDD>>>% @", FDFD); Now I am trying but it returns data = {} there is no information in this result
[FBCCECNC connection currentWith graph: @ "I / Feed "ClosingHandler: ^ (FBCACC Connection * Connection, Id Result, NSERR * Error) {If (! Error!) {NSLog (@" Result% @ ", Results); }}]; and create output urls and there is no data in it
For information on the IOS SDK, please see: If you want to see a photo for an album, an album ID , Like you would use the request code: [FBRequestConnection startWithGraphPath: @ "album_ id" / photos "completionHandler: ^ (FBCAC connection connection, id result, NSError * error) {If (error!) {NSLog ("Result:% @", Consequence F); }}]; Make sure you have asked for user_photos permissions first.
Comments
Post a Comment