Social media notification integration to our website - facebook

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.)

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).

Can I follow users through Facebook Graph API?

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/

Does Facebook send notifications to my web page by the fb app?

I have searched on Google and Fb's documentation about this but didn't find anything.
I've already shared content of my page on Facebook with the Share button provided by FB's api and also made an app on Facebook.
Now I want to receive notifications in my page when someone comments the publication or likes it.
I know that I can consult the posts/comments/likes if the user gives me the permissions, but I don't want to do this every 5 minutes. I want that facebook notifies me like a push notification.
How can I do that if it's possible?
Thanks!
After the user shared something on his wall, there is no way for you to get notified about comments/likes on that wall post, unless you authorize the user with user_status or read_stream.
That being said, there is the Realtime API with the feed and statuses fields to subscribe to: https://developers.facebook.com/docs/graph-api/real-time-updates/
That´s probably the best option, although you must authorize the user with the correct permissions too.

notifications or posts with facebook Login using graph api

i am building a website with Facebook login. is it possible to send a post to my friends time line or notification to my friends using graph API. i want to build invite Facebook friends to my website. can some one help me on this
Posting to the timeline of a friend was remove a long time ago, because it´s considered spam in most cases.
Notifications cannot be sent to friends either, luckily ;)
There are "App Requests", but they are only allowed for games on facebook.com and not for external websites.
The best (and easiest) way for you is to use one of the Social Plugins:
https://developers.facebook.com/docs/plugins/send-button
https://developers.facebook.com/docs/plugins/share-button
https://developers.facebook.com/docs/plugins/like-button

Implementing comments and notifications using Facebook plugins

I have a reviews website where I want to integrate Facebook social plugins. I initially thought of integrating facebook comment plugin where users can write their reviews for the products I have listed on my site. But that seemed like laying waste to my own review functionality.
Here's the flow I came up with:
create a facebook app for the website
Users write a review and post it to their facebook profile
When some action happens on the review like when it is voted up or replied to, the user who posted the review to facebook gets notified via the facebook notification center
I fetch the likes, replies on facebook post and display them on my website on the review
Is it possible to implement this workflow? I basically want to send notifications to user from inside my website not from the facebook application I created.
This is possible using apprequests. One requirement for this to work is your website and facebook canvas app must be registered under the same 'app' (ie have the same appID) and be under the same base domain.