Can I follow users through Facebook Graph API? - facebook

I want to follow users through Facebook Graph API.There is no documentation available.

That is not possible via API – most likely because it would just be abused to much, and have app developers subscribing user to follow people without the user being aware of it.
For the web, there is a social plugin available, so that the user can actively trigger a subscription: https://developers.facebook.com/docs/plugins/follow-button/

Related

Connect App Flutter with API instagrame Publish comment

I have a question about connecting my app, made with Flutter, with the Instagram API.
I want the user to register with their account, store the access token and then send a post to the API to publish a comment or add a like.
Can I do this with Flutter or do I need to use a different language like Python?
I checked the API documentation that Instagram provides and it seems that you can only do read-only requests (liking a post might not be possible).
The API you mentioned in your tags will not work with personal accounts, as Instagram states:
The API cannot access Instagram consumer accounts (i.e., non-Business or non-Creator Instagram accounts). If you are building an app for consumer users, use the Instagram Basic Display API instead.
You can try to use the mentioned Basic Display API instead, but mind you won't be able to author any posts or do actions in behalf of the user. To circumvent this, you might have to reverse-engineer the frontend facing portion of Instagram but I won't go into that.
To come back to your question, Flutter is well able to send network requests as mentioned here, but you still have a long way until you have functioning access to Instagram (check the Getting Started).

Is there a way to use POST/GET Requests for messages, on your Personal Profile on Facebook Messenger

I've looked through the API and it's all for Facebook Pages to set up a Chatbot.
I wanna be able to set up a Webhook/Listener for chats/messages on my personal profile (to mess around a little).
I'm asking cos I can see unofficial Messenger apps on the Play Store, and they don't look like just a web implementation.
No, there is no way to do that using the official APIs.
Read access to user conversations has been removed a long while ago already, and there is no webhook functionality for this either.

Social media notification integration to our website

Following are my requirements
created space in website that user can come and sign up with FB or Instagram to integrate their account
Through Graph API for FB and API for Instagram, I can able to view and post the images to FB (post is not possible to instagram)
My requirement would be any activities (like and share ) happened at the FB or Instagram page should receives as notification to my website
I came to know there is no direct APIs available to achieving notifications but I have seen them in "Social Stream" app.
any help would be appreciated on how could achieve this functionality
TIA
You can get likes, comments and posts using API. You can poll them at regular interval, compare new data and create your own notifications.
(You have to get your app approved by Instagram to get API permissions, which may be possible for your usecase, if you do get approval, then its possible to achieve what you are trying to do.)

How to make a facebook app that automatically shares posts from a facebook page on my personal account?

I have a page and every time I post an update, I have to ask my Social Media team to share it from their personal accounts to increase the reach. I wish to automate this process by making a facebook app.
The app is supposed to share every new post automatically from accounts of those who signed up for the app.
I tried to look up for such apps, but couldn't find any. Is there some constraint that doesn't allow the existence of such apps?
If no, how can I create one? I have fair coding skills but haven't worked on developing a facebook app before.
Thanks.
Autosharing/Autoposting is not allowed, prefilling is not allowed either.
Platform policy: https://developers.facebook.com/policy/
That being said, publishing on a user wall is explained in the API reference, including example code: https://developers.facebook.com/docs/graph-api/reference/user/feed#publish

Integrating Facebook into Google analytics

I want to add the 'Log in with Facebook' option to my website, however I'm unsure how to integrate the information gained when someone logs into my website with Facebook with my current Google Analytics.
Is it possible to link up a visit in Google Analytics with a user who has logged into the site with Facebook to enable me to see things like age, gender etc?
Any help you can give me on this would be much appreciated.
Thanks,
Ben
you may have to do this via a redirection or possibly a frame.
Google Analytics does nolt track individual users, it provides anonymized data. So at the top level, no you cannot do this. However, there are a few more things avaiable to you. One: Facebook provides facebook insights, their own tracking suite, that will give you demographic information on the users of a facebook app or fan page. You site will effectively become a facebook app when you use their user authenication, so you will be able to get insights tracking on you site. At the present moment, facebook insights and google analyitcs do not itegrate or share data. Facebook insight also provides anonymized data, so you will not be able to identify an individual through the tracking.
The final option is, now that you are tracking users through login, you can implement your own tracking info on your site to see what individual users are doing, and attempt to track their preferences.
Its also entirely legal (in the United States at least) to buy access to marketing data and use use your registered user name pool to get additional information.
If you wanted, you could set up a "funnel" in Google.
When a user logs in through Facebook, you could send them to a specific page and then track their progress from there...
http://www.google.com/support/analytics/bin/answer.py?answer=55515
So using this you could get the percentage of users who log in through Facebook... etc.
But to collect information other than that, you would have to get the correct permissions documented here eg. user_birthday (to get the user's Birthday) and query the Graph API from there, thus implementing your own tracking of users.
You can query the Graph API using the various SDKs that Facebook provide explained here.
First of all you should check out this Google document. It explains, how you set a custom unique user id via google analytics.
Further you've to send an event to google analytics (e.g. 'fb_login') via the callback function of your facebook login function.