I was using FB api to post photos to my fanpage's news feed (http://www.facebook.com/MyApp/photos_stream), but from some time it stopped posting it to news feed and it just uploaded photos to some album (http://www.facebook.com/MyApp/photos).
This is the api command I was using before and after it was working, nothing has changed on my side.
$result = $facebook->api('/123456789/photos', 'post', $attrs);
So the question is, how to post photos to fanpage wall (timeline) properly and why it stopped working by itself?
Thanks
I had the same problem a few times ago.
In fact it was working but you have to go to your photo folder and accept the uploaded image.
In the album Facebook will show you a panel saying you have to approve those photos.
By doing this Facebook will publish the images on the timeline.
I know this is very annoying but I didn't find a better solution (I think Facebook has added a new security to avoid some abuses).
EDIT:
Look at the Facebook documentation.
You can post photos to a Page's Wall by issuing an HTTP POST request
to PAGE_ID/photos with the publish_stream and manage_pages permissions
and the following parameters.
Make sure you are using those two permissions and that your parameters are correct.
Related
I am try to publish link on Facebook fan page using graph API but it displayed as attachment not as normal feed which display thumbnail.
Where as when I try to publish same link on users wall it display properly showing image thumbnail.
Can any one tell me why Facebook graph API work differently.
Feed publish on FB fan page :
Feed on user wall :
Thanks to all, I am finally able to solve this issue, the issue was I am using {page_id}/feed method to publish link for video and image, which displayed as attachment on Facebook fan page.
Solution : {page_id}/links with parameters [link, message, picture]
Pls provide params you include in request to facebook. Maybe providing params as shown in answer to following question helps, i.e. picture?
Posting an embedded video link using the Facebook Graph API
I want to post images from my iOS app to a single Facebook fan page. I'm new to facebook-sdk. I can post to a user's page with no issue using either facebook sdk or social framework, but what I cannot work out is posting to a fan page. I have set up a fan page and have set it to allow posts from anyone but when I try it with the url /pageID/picture it won't work. It'll work for admins, but I want non-admins to be able to post.
What do I need to do?
I can post image but it end up only in my images . no matter what url I Use
fb /me/photo or /fan_page_id/photo the images only end up in my image folder not on the wall please any help would be great I can find 1000's of questions on this but no answer .
I have fixed it I never added this key to my options dict
ACFacebookAudienceKey: ACFacebookAudienceFriends
In the Account framework header it has it marked as optional but I could not request any thing other then read permission but after adding this key to my options dictionary it worked I dont know why this makes a difference but it fix my issue with out it I could only post to my images folder and I could not request permission other then read . After adding key I can post to wall and fan page wall and request any permission I need.
In your Fan Page, Look for "Edit Page" option. In that part, click on "Manage Permission".
In Manage Permission page,
Check
Posting Ability:
1> Everyone can post to <> timeline
2> Everyone can add photos and videos to <> timeline
Also take a username for your fan page to refer your user in a easier way.
Update
You have to create an facebook application for the requirement.
Following three links may help you -
1> Posting a photo to Facebook fan page as user. iOS Facebook SDK 3.1
2> https://developers.facebook.com/docs/reference/api/page/#photos
3> http://developers.facebook.com/docs/reference/api/publishing/
Actually, the publish_stream and manage_pages permissions are important.
Thanks
I have a Facebook application in which a user can upload photos to a facebook fanpage. I am having trouble figuring out how to upload the photo as the user that is using the application. Currently I can have the fanpage upload the photo as itself, so the fanpage loses the author of the photo.
To do this I am grabbing the fan page's auth token(which I am assuming is the reason the app is posting as the fan page) and using that to pass to the "photos" method of the api. I am using the AS3 api, but I am sure the concept is the same no matter which api I am using.
var values:Object = {message:"message here", name:"title here"};
values.access_token = fanPageAccessToken;
values.image = file;
Facebook.api('fanPageId/photos/', handleUploadComplete, values,'POST');
When I change to the user's access token the image is uploaded to the user's photos. Even though I am specifying the fanPageId, it gets uploaded to the user's photos.
I am struggling here. Does anyone have an idea I can try, or some insight to share?
Thank you so much, I appreciate your time!
I've tried every possible API combination to post a photo to a page from the user, but it's no use. A user cannot post a photo to a page. Even creating an album on the page and then posting to that doesn't work.
How to post a picture to a specific album in page from app without posting the image on page wall? Currently I can post picture to a specific album, but I don't want to see that on page wall becouse the app will post a lot of pictures. So how that is possible?
This is an example of app that uploads generated picture to specific album but dosn't publish it on its wall, I'm trying to do the same.
http://www.facebook.com/MercedesBenz?sk=app_318742408161371
Yes this is possible by providing no_story parameter equal to 1 while uploading photo.
POST https://graph.facebook.com/ALBUM_ID/photos?no_story=1
This information once was documented for photo object, but not anymore exists in current documentation.
This is described in Developer Blog post: Suppressing auto-generated feed stories when uploading photos
We would like to use the Facebook Comment plugin (or something similar) on a website. The photos are being pulled in from Facebook to our site (built in PHP). We would like to enable commenting on a particular photo and post the comment back to Facebook. Addtionally, if a comment is made on Facebook, we would also like for the comment to display on the webpage.
From the website, we have only been able to get the comment to apply to the webpage, but not to the photo itself. Thus the comment posts on facebook with a link to the webpage, but does not display the individual photo.
Does anyone know how to successfully post comments on a particular photo from a webpage?
Using the Graph API, just do an HTTP POST to https://graph.facebook.com/PHOTOID/comments?access_token=ValidUserAccessToken with the correct parameters specified (such as message) as well as a user access token with the correct permissions specified.
See the comments connection of photo at https://developers.facebook.com/docs/reference/api/photo/