Remove Fans From a Facebook Page Through Graph API - facebook-graph-api

Manually, I can remove fans from a Facebook Page by going to settings>banned users>people who like this, and clicking remove & ban permanently. Is there an equivalent way to do this through Graph API besides just banning them?

There's no way to do this via the Graph API. Deleting on the /user/likes edge is not possible:
https://developers.facebook.com/docs/graph-api/reference/v2.2/user/likes#delete

Related

Facebook/Instagram API - Getting Popular Hashtags

I am trying to use the Instagram API for one of my projects. The task I'm trying to accomplish is getting popular hashtags based on an input keyword.
To elaborate a bit: when you're on Instagram, and start typing a hashtag, you get a popup with suggested hashtags related to what you're typing, sorted by popularity.
I'm trying to get these suggestions, but through an API call. Looking at the Instagram API docs, there is Hashtag Search as shown here, but this endpoint searches for posts which use the input hashtag, which is not what I want.
Another post suggested I have a look at Facebook Graph API instead, but again no luck there either.
I know this is possible to do as certain websites which provide services to schedule posts, like this one do it.
So, is there an endpoint in either Instagram or Facebook API that I've missed, or is there any third party API / tool that can accomplish this?
There is not currently any "trending" features as part of Instagram Graph API.

Can I get mention list via Facebook Graph API, just like we do "#" in a Facebook Page?

I have a Facebook page and when writing post comments, I can mention other groups by adding #. But, can I use Facebook Graph API to get mention list. If yes, what are the permissions I should have and what is the endpoint for getting mention list?

FB does not allow using FB share dialog with Posting through Graph api

Whe I am trying to get permission for publish_actions for my facebook app, it asks few points. One of those points is -
My app does not use the Facebook Feed Dialog or the Facebook Share Dialog to publish content
This means that If I want to get the publish_actions permission for using graph api to post on a user's wall I will have to remove all the FB share dialogs used in every place of my site.
After reading above I decided not to use publish_actions permission at all. But then I got a chance to look into change.org website. They are actually using both kynd of sharing. On the campaigns, they post to your wall via Facebook Graph API and on their blogs they are using facebook share dialog. So I am bit confused that can we use both simultaneously or not? And if not, how the change.org is able to do it?

Use of __after_id in facebook graph API calls

What is the use of __after_id in graph API urls?
I thought its an alternative to offset.
But some experimentation shows that __after_id doesn't have any role to play.
Anyone?

Retrieve comments Facebook users make as the Like a web page

I've been pouring over Facebook's Graph API but I can't seem to find any documentation with regards to retrieve comments users leave as they Like an Open Graph object (in my case, a web page with a Like button).
At a minimum, I would assume that there would be some way to retrieve comments from users whose privacy settings allow anybody to see their updates (I guess this might require me to know the UID of everybody who Likes my web page). Alternatively, there might be some method where user comments may be associated with the Open Graph object's stream instead.
Anybody?
To see a user's wall feed via the API (even public ones) you will to have them authenticate your app. Yeah, pretty crappy not to be able to query their public messages, but it is a current limitation of Facebook's API.