How can I know if the post are promoted in facebook using the GraphAPI? - python-3.x

I'm trying to use the graphAPI to see the comments in the posts on my facebook page and I have to know if the post is boosted/promoted. I tried to use the promotion_status, but is deprecated...
In the link https://developers.facebook.com/docs/graph-api/reference/v14.0/page/feed, is saying for me to search for is_eligible_for_promotion, but is not for the same thing :(

Related

Instagram API - get own posts for website

I read through all the dev docs stuff at https://developers.facebook.com, but I found no simple solution to solve that one simple question. I want to display my own posts detail at my website. Is that even possible?
This is possible using IG Basic Display API and the GET /{user-id}/media endpoint
You will need to build a Login flow which is described in the Get Started guide
https://developers.facebook.com/docs/instagram-basic-display-api/getting-started
https://developers.facebook.com/docs/instagram-basic-display-api/reference/user/media

Issue with commenting on Facebook posts with api

I'm a beginner on Facebook API but after reading up and understanding whatever I could I'm still stuck because I can't find any good documentation that is not outdated.
I'm trying to comment on my own post and I keep getting this error:
Publishing comments through the API is only available for page access tokens
I do understand that I require a page access token for the latest version of the API but even after getting the page access token I'm still facing this issue.
Here is a screenshot of my graph API explorer
Here I first clicked on get user access token and gave it all possible permissions. After that I clicked on get page access token and then tried to post the comment.
Note: The post was made by my ID and is visible only to me, I am sure that the user ID and post ID is correct because I am able to view its details
I also tried it using python with the token ID above and this code.
import facebook
graph = facebook.GraphAPI(access_token=token_id)
#This does give me the post details
#print (graph.get_object(id = my_id +'_10214865328931217'))
graph.put_object(parent_object=my_id+'_10214865328931217',connection_name='comments', message='Test')
But I still get the same error. Seems like there is something about the way page access tokens work that I do not understand.

Tumblr.js official javascript/node API "link" posts with image, title, body

I'd like to be able to post link posts on a blog exactly the same way as if you were to go on the regular user interface and choose a "link" post and paste in a URL. It automatically grabs the image, sizes it, sets the title and a body/caption.
How do I go about doing this with the tumblr.js api wrapper?
I already have the API working so I do not need to know how to connect/post link articles. I am specifically interested in being able to add link posts that look/work exactly like the link posts you make as a regular user on their web interface. Using the API to do a link post just throws in the title. Using a photo post doesn't allow you to do a separate title/body. I'd love it to look like it does on the website when you paste in a link post and have the tumblr api/feed return it the same way too.
I got a response via github issues that explains that what I was attempting to accomplish is not available via the API. It can only be done using a tumblr client.
https://github.com/tumblr/tumblr.js/issues/41#issuecomment-135588952

Is it possible to post comments on Instagram via API?

There is a POST method for to create comments, but it says the following:
Create a comment on a media. Please email apidevelopers[at]instagram.com for access.
See: http://instagram.com/developer/endpoints/comments/#
So do I have to get whitelisted for to be able to post comments or is the access_token enough?
Yes it is possible to post comments on Instagram via API. You have to get whitelisted now, so you have to email. This was not the case before, you were able to use commenting in api whithout whitelisting, but because of some apps spamming and abusing the comments feature, commenting now has to be whitelisted
See more: https://developers.facebook.com/docs/instagram-api/reference/media/comments#create

Is there a full list of the parameters supported by the Facebook search API?

There is a search API can be used by developers to conveniently query posts, people in Facebook. But is there a full list of the parameters supported by the Facebook search API?
Facebook official docs provide what you need .graph api reference page has nice table describing what are various fields that can be used to call graph api.
Few links to use graph API and its reference
https://developers.facebook.com/docs/graph-api/using-graph-api/
https://developers.facebook.com/docs/graph-api/reference/
Github gist of Facebook Cheatsheet
https://gist.github.com/stevedev/1097432
Ill assume you did not find/read their website on FQL, so Ill give you that address now.
https://developers.facebook.com/docs/reference/fql/

Resources