I recently saw Sponsored posts by a page. Current this appears only for pages from Canada. Is there any way we can get these posts using Facebook graph API? I assume Facebook should give it since these are publicly visible.
Check our few Canadian pages:
https://www.facebook.com/pg/cialiscanada/ads/
https://www.facebook.com/pg/chevroletcanada/ads/
PS: These pages may not be visible outside Canada.
Related
I apologize if I don't use the correct terms. I'm unfamiliar with Facebook / Graph API.
I want to show posts from several Facebook pages, which I don't own.
I can contact the owners of each page and ask for some kind of permission / token.
Is such a thing possible (without setting an App per Facebook page)?
I am using FB graph API to fetch people's posts on community pages, such as this
I used the graph API explorer with url
However, if I try the /tagged url with a non community page such as this, I can retrieve people's posts on the page.
Do anyone know why /tagged only work in non community page?
Thank you!
Not really sure what do you mean with "Community pages" but this is a problem of permissions. Quoting the docs:
/{page-id}/tagged shows the posts to this page. It will also show some
posts in which the page has been tagged. It will only show tagged
posts where the person who made the post have installed the same app.
Link to the docs: https://developers.facebook.com/docs/graph-api/reference/v2.3/page/feed
So probably you do not have permissions to see post for that particular page.
I hope it helps.
I am trying to implement the Facebook like box onto my website to show posts by others onto my Facebook page, however it is only showing a feed of the posts the page has made to its timeline and not the posts of other Facebook users.
I'm not sure how I can get this to happen? I'm not bothered about having the page's posts appear but I definitely want other's posts to appear in the feed.
Any help would be greatly appreciated!
Afaik the Plugin only shows posts "by the Page", so that is intentional. Think of it this way: If you get many User postings and only write a few Page postings, your Page postings would just not be very visible in the plugin.
You can only use the "force_checkin" parameter of the plugin to show checkins of friends, see Facebook docs: https://developers.facebook.com/docs/plugins/like-box-for-pages
If you want to get the posts of Users on a Page, you would have to use the Graph API: https://developers.facebook.com/docs/graph-api/reference/v2.1/page/feed
The docs include some example code for most relevant languages and you will get User posts too. Of course you have to design it on your own, you just get data from the API.
Suppose that I am the administrator of a Facebook page, I want to get all of the profile details of a the people who "liked" my page. Is this possible? How?
So far, I have only been able to get aggregated data through the Graph API. For example, "number of like in the past week".
There are posts that claim that I can do this with the FQL API, but the documentation for the FQL seems to have been hidden on FB developer site.
FQL reference is not "hidden", it's here: https://developers.facebook.com/docs/reference/fql But there's no current official way to get the profile details of your Page's liker, because you'd need the permission to query the user data from the users.
There are some "hacks" as denoted at Facebook API: Get fans of / people who like a page for example, but it's strongly advised that you don't use these. Facebook forbids scraping for example, and once Facebook changes its website, those methods are likely to stop working.
I have a website, and a Facebook fan page for said website. My website is using Facebook connect and I was wondering if it's possible to query the number of likes, shares, and comments of my fan page content that originated from the logged in users.
It could be done by crawling your page's feed via the graph api and collecting the comments and likes of the posts (see connections part) on your own database. However it's a pretty big undertaking, you will have to deal with synchronization of content (deleting posts from your side when its deleted on facebook), expiring access tokens, occasional facebook outages and so on.
If you just want to show content to the users they might like on your page facebook gives you a social plugin called Recommendations for that.