Search code examples
iosfacebook-ios-sdk

iPhone FaceBook status with photo


I want to know is there anyway to update my FaceBook status with photo and location?

Till now I've only seen way of giving a URL to my photo. Is there any way where I just put my UIImage to FaceBook and send it to me/feed using fbrequest?


Solution

  • You can try fbrequest graphpath me/photos for this.

    [facebook requestWithGraphPath:@"me/photos"
                         andParams: params
                     andHttpMethod: @"POST"
                       andDelegate:self];
    

    You can pass Image as part of the parameters. For location, you can add placeID for the place you want to add. Here is the reference doc for Places.