Facebook Graph API Photos Response Changed - facebook

Facebook Graph API version has changed to 2.4 yesterday. I have been testing using Graph API Explorer and response to /me/photos request has changed. It returns only one photo. Is there a way to get all the photos as it was in v2.3 ?

/me/photos actually only returns tagged photos.
You need to request me/photos?type=uploaded to get all the photos you uploaded.

Related

How to get the thumbnail url for a video in an Instagram hashtag feed?

This is specifically about hashtags using the Facebook Instagram API.
Has anyone successfully retrieved the thumbnail url for a video in a hashtag feed? Even when using the graph API I cannot get anything to return?
To get the thumbnail_url you have to make an extra call to the Oembed endpoint using the post for the video and an access token. You must have an approved APP for this to work also. https://developers.facebook.com/docs/instagram/oembed/
https://graph.facebook.com/v9.0/instagram_oembed?url=https://www.instagram.com/p/CKRgKXoif40/&access_token=xxxxxx
Then you will see the thumbnail_url option available to you.

Facebook graph API insights gives post_video_views_organic for photo post

We are fetching insights of posts in our app via fb graph api v2.7
We have noticed that we are getting video_views_organic value for posts other than videos such as photo post.
Can anyone please let me know if this is correct behavior from api?
Thanks,
Kinnari

Some posts not visible on the feed through Graph API /me/home

I'm working on an application and I've noticed that some posts from the feed are not visible through Graph API /me/home. But if I send request from Graph API Explorer app, I could see.
For example
Request from my app http://storage9.static.itmages.com/i/14/1023/h_1414085047_2753961_8f3284c6bd.png
Request from Graph API Explorer
http://storage7.static.itmages.com/i/14/1023/h_1414084999_5837075_594eb48230.png
Permissions are identical
What could be the problem?
Give this a go.
me?fields=home.filter(others){message,id}
FB's documentation is horrible.

Can't get Facebook album photos anymore using $facebook->api('ALBUM_ID/photos?limit=0')

I have been using Facebook graph Api, for a long time, in my website to allow users to grab their photos and use in mine.
A few days ago, I noticed that the following code:
$facebook->api('ALBUM_ID/photos?limit=0')
is no longer retrieving the photos of the given album.
Has facebook changed it's API?
thanks.
From the roadmap:
FQL and Graph API limit=0 change
Currently, we have a bug where limit=0 returns all results. After the migration period, specifying a limit of 0 in FQL or the Graph API
will return zero results.

Can I upload photos but not post to wall in Facebook?

Can I upload photos using Facebook API but not post to wall in Facebook?
What I use is the photos.upload in the API.
If it cannot be avoided, is there any way to delete that wall post so that I don't have to do it manually?
Documentation of graph API (http://developers.facebook.com/docs/reference/api/photo/) mentions the following:
If you would like to suppress the
story that is automatically generated
in the user's feed when you publish a
photo (usually because you plan on
generating your own), you can add a
no_story=1 parameter. In this case,
the user will receive a notification
that your application has uploaded a
photo.
Adding the same parameter to the legacy REST API seems to work for me
Let me answer my own question:
It's about the permission problem. We can set the permission so that the photos do not publish to wall.