How do I get sponsored posts with Facebook using the API? - facebook

I wonder if it was possible with the facebook api to be able to filter and display only publications that are sponsored ?

Have a look at the Page Ads Posts endpoint: {page-id}/ads_posts
https://developers.facebook.com/docs/graph-api/reference/page/ads_posts/

Related

post to instagram and facebook using api

Let's say I have a facebook page, if any post happens on that page the same content should also get posted automatically on my instagram as well. how can I achieve that, I have been looking at facebook graph api documentation for hours now but I am very confused, any guideline on which approach should I take?
Instagram does not offer any API to post to their platform. I am afraid there is no way.
Edit: There is an option, but it is limited to IG business accounts: https://developers.facebook.com/docs/instagram-api/guides/content-publishing
Facebook Graph API:
https://developers.facebook.com/docs/graph-api/ and Instagram Graph API: https://developers.facebook.com/docs/instagram-api/
In order to post anything on Instagram, you need a creator or a Business account. Also, you need to connect Facebook and Instagram in order to post anything. That is because posting on Instagram is done indirectly through Facebook pages. See here for more info on how it can be done: https://developers.facebook.com/docs/instagram-api/overview

Get the share count of my Facebook page using Facebook graph API

I'd like to ask how can I get the share count of a Facebook page?
I can get the number of likes on a Facebook page using the Facebook graph API by adding this 284018994957837?fields=fan_count and I have read in the Facebook graph API docs about the fields that I could use if I will access a Facebook page but none in the docs mention about the share count of a Facebook page. Any idea will really be appreciated :-)

Facebook API : get user likes other than Pages

I'm trying to build an app that needs to get what a facebook user likes. By "likes" I mean not only which facebook pages the user is following, but also all likes related to posts, photos, or non facebook urls.
All I've found in the API doc is this endpoint:
http://developers.facebook.com/docs/graph-api/reference/v2.2/user/likes
Unfortunately, it only returns facebook pages a user likes. Is there a way to get what I'm looking for?
No, there is no way to achieve what you are doing using Graph API v2.0 and above.

Facebook wall posts made by me via the graph api

Is it possible to query my feed for the wall posts made by me and not by others?
Yes it is possible.Try https://developers.facebook.com/tools/explorer
And use
https://graph.facebook.com/your_facebook_id?fields=feed.fields(from,message,story,description)

Get number of clicks on my facebook post?

Is it possible to get number of clicks on my Facebook post (Image, video or audio)?
How can I do this using Facebook Graph API?
Use post_engaged_users insights metric to retrieve the number of people who clicked anywhere in your posts.
More information:
Graph API Insights
FQL Insights