Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook - Changing a photo caption via graph api

How to change a caption of an image on Facebook in PHP via graph api? This is the way I used to upload it:

$facebook->api_client->photos_upload($file,$aid,'some caption',$uid);

Any hints? Thanks.

like image 440
Sahar Atias Avatar asked Feb 21 '12 09:02

Sahar Atias


People also ask

How do I update my Facebook Graph API?

In the App Dashboard Settings > Advanced, scroll to the Upgrade API Version section.

Is Facebook Graph API a REST API?

Yes, it is a REST API as well. Show activity on this post. Yes, there have been 3 Facebook API's to date: Legacy REST.


3 Answers

NO, Its not possible to change caption of image using API.

like image 68
Amrish Prajapati Avatar answered Oct 14 '22 14:10

Amrish Prajapati


The Open Graph API does not allow such an option.

It is possible to upload the photo with a new caption, but it looks as if the user has to approve the addition of a photo to his album, and I'm not sure that part is automatable.

If you want further explination try reading This question.

I may be doing something wrong and should not answer as link to same question exists on the comments, but i just thought it's an answer and no one posted it. If i shouldn't have done that, comment and i'll delete or author delete question. Don't start voting me down =/

like image 24
eric.itzhak Avatar answered Oct 14 '22 15:10

eric.itzhak


You can't update captions on Facebook. They're quite rigid about that. You can upload a caption, but if it includes a link, it will be "red flagged" as spammy and your app might be taken down. The way they want you to do it is provide a text area for the user to fill out, and then upload that to Facebook. Essentially, have some user-moderated flow that allows someone to add or customize the caption input.

After it's uploaded, there's absolutely no way to change it.

like image 21
Anna Billstrom Avatar answered Oct 14 '22 15:10

Anna Billstrom