I use facebook graph api to publish a link to group.
It works occasionally, many times the title, description and thumbnail won't be displayed.
But with that same link if i post by facebook, it works normally.
The link is tested with debugger tool.
Not sure any way to preload the link or guarantee all meta data will be published correctly through graph api?
Related
Typically when an application publishes to Facebook via the Graph API, Facebook includes a little link at the top of the news item indicating which application posted it, linking to the application's website.
I noticed recently that when Instagram shares a photo to Facebook the "Instagram" link at the top of the item points to the actual photo permalink instagram.com/p/whatever instead of just instagram.com.
Is it possible to set a custom URL per-post when publishing via the Graph API? Or some other mechanism? Or is this a special insider configuration for IG only?
I have to fetch the count of post reached and video views of media(image, video or text) that is posted to the Facebook wall of a user.
I am using Facebook Graph API for this purpose.
On doing some research I found that facebook insights are used to fetch the posts reached and video views count. But this data can only be fetched if the media is posted to a page and not to a user's Facebook wall. I have gone through the link below to confirm this
https://developers.facebook.com/docs/graph-api/reference/v2.3/insights
I even found a link wher we can get the insights of an app using the app_insights feature of Facebook as mentioned in the link:
App Insights /{app-id}/app_insights
Can I fetch the post reached and video view counts of a specific media that is posted to a user's FB account using the app-id/app_insights?
If not, is there any way to access the data for a post made in the Fb wall using Facebook Graph API?
Please suggest!!
There is no 'user insights' or equivalent feature in the API
There's Page Insights (via the /insights edge of a page or page post) or App Analytics via the app_insights edge on an App
There is no mention of privacy for Photo object,-
https://developers.facebook.com/docs/reference/api/photo/
But its possible to get/set the same for each photo via FB website. So is it possible using GRAPH/FQL to get/set privacy settings for Photo?
For getting the value: see Lix's response.
For setting the value:
Without the column exposed via the API, it's not going to be possible to change/update its privacy. I can see this being a great bug for you to log at http://developers.facebook.com/bugs
Aside from two special albums, namely "mobile uploads" and "wall photos", photo privacy is governed by the album (same on Facebook web too so the bug request won't help here). If you post to me/photos then you are posting to an album auto created for your app. You can post to any album by posting to albumid/photos.
The good news is that you can set the album privacy for an album that you create via the Graph API. See the "albums" section on this page.
Facebook recently added link previews to user comments.
http://www.insidefacebook.com/2011/07/21/facebook-comment-previews/
My question: is there a way to display this link preview using any of the Facebook APIs and publish_stream permission? (Graph, rest, etc)?
I've tried posting a URL in the body of a comment using the Graph API /comments endpoint, but no link preview is shown.
The feature might still be too immature to allow this, but I'm wondering if any one has tried it and got it to work in some way.
Sure. Just post a comment (for example) with youtube video and it will transfer to embed one
I'm trying to post a link to the wall of a facebook Page through the graph api.
http://developers.facebook.com/docs/reference/api/post/
Unfortunately the api is not very well documentet so i have some problems:
How do i get the "Share"-action to appear under a link i've posted?
How can i disable thumbnails for the link?
How can i make the caption linked
All those works when posting manually but i havn't found a way to do it through the api. I know it's possible though since i've seen other apps do it.