How do i get Facebook video comments, i can only get photos, stickers and links
I have passed the type in comments when calling the get comments request but i havent managed it.
$this->fbpageid . "/feed/?fields=message_tags,from,message,like, comments{message,attachment{media,description,target,type,url,subattachments{media,description,media_type}},from,created_time}";
I was expecting to get video as a comment['type'], but it isnt working. I only get the photos, links and sticker as the only comment type
Related
I need to get the recent images/videos and text from the posts on a page on facebook. In the Graph API Explorer, I have the GET
https://urlOfThePageINeedRecentPostsFrom/posts?fields=picture,feed,featured_video,link&limit=5&accesstoken=myAccessToken
In the response I am getting the feeds but they are more than the limit 5, also inside the feed data, I am only getting the texts that are posted. I want the number of likes, links, pictures or videos attached to those as well.
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.
I'm trying to post on a users' wall through the Facebook Opengraph API and the PHP SDK.
All is working fine - except the video I'm attempting to include in the post (hosted on Facebook videos) is failing to show up on the wall/timeline of the user being posted to.
I'm setting the URL to the video as the 'source' value in the $attachment data sent to /me/feed. Also setting 'type' to video.
On the wall I get a placeholder thumbnail and the rest of the post as specified.
Any ideas?
Thanks,
Steve
You should be able to link to the video as a link. For other types of shared content, you should check out: https://developers.facebook.com/docs/guides/attachments/. Let me know if this isn't what you were trying to do.
I would like to know the Graph API equivalent of the following action :
Go to a friend's profile page, click on "Add Photo" on their wall, then "Upload Photo".
I can upload images to my own wall and to my own albums, and I can also post messages and links to my friends' feed, but I can't figure out how to do this.
Any help would be greatly appreciated.
Thanks.
I was able to do it setting a "target_id" parameter, and uploading the image to "graph.facebook.com/me/photos". Then it does show up exactly as if it had been done the manual way.
The only thing I'm not sure about is if "target_id" is some legacy parameter from the REST API that will become unsupported in the future...
I believe that process adds a photo to one of your albums; then attaches that to a Post on your friend's 'feed' connection
You can find documentation for both of those steps on the developer site:
Upload Photo: https://developers.facebook.com/docs/reference/api/user/#photos
Post on wall: https://developers.facebook.com/docs/reference/api/user/#posts - see the 'object_attachment' parameter here
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