-4

I tried to post image in facebook fan page.

I am using below code:

FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                              initWithGraphPath:@"/facebookPage_ID/photos"
                              parameters:@{ @"url": @"https://dncache-mauganscorp.netdna-ssl.com/thumbseg/378/378006-bigthumbnail.jpg",}
                              HTTPMethod:@"POST"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) {
    // Insert your code here
}];

Current image posts to facebook page successfully but image "did not post in facebook page wall" is shown in visitor post.

I want to show image in facebook page wall.

rmaddy
  • 314,917
  • 42
  • 532
  • 579

1 Answers1

-1

You need to use a Page Access Token instead of a User Access Token:

The steps:

  • Get a User Token with the manage_pages and publish_pages permissions
  • Use /page-id?fields=access_token to get a Page Token for a specific Page
andyrandy
  • 72,880
  • 8
  • 113
  • 130