Post to facebook wall offline access - php

I wanna build a system to push notifications on the users wall when the person is online or not on Facebook.
I will use some kind of "Login button" with offline_access and publish_actions.
But how can i know the user and push to the persons wall when the person is offline?

See this documentation , I think it will help : https://developers.facebook.com/docs/app_notifications/
And view this post : Get long live access token from Facebook

Related

facebook php graph api me/friend reture nothing

hi I'm a facebook api php developer. I developed some apps with me/friend . now this return friends only for my admin account. when another user use this app, it retune nothing.
why this return friends only for my admin account.
if should I get special permission how can I get it.
could you any one please help me.
Make app live
You need to make the app and all its live features available to the general public. This can be done by making the app live by going to https://developers.facebook.com, select Apps --> Your App Name --> 'Status & Review'.
Login Review
You might need to do a Login review.
Review is not required to ask for the three basic permissions: public_profile, user_friends and email. In order to use Facebook Login in your app and access additional elements of a person's Facebook profile, you will need to submit your app for review. If your app is not approved or you don't submit for review, people will not be able to use Facebook Login in your app.
https://developers.facebook.com/docs/facebook-login/review
According to Facebook Graph API for Friends you need user_friends permissions which states that:
Only friends who installed this app are returned in API v2.0 and higher. total_count in summary represents the total number of friends, including those who haven't installed the app.
Friend list now only returns friends who also use your app: The list of friends returned via the /me/friends endpoint is now limited to the list of friends that have authorized your app.
Read change log
You can debug me/friends endpoint as well.

Post notification that user is using my application

If i have a facebook application with name "abc", how we post to facbook ticker that "user_name is using ABC" when a user uses my application.
i use graph api to post photos. but if i post same message as status to users wall like above sentence, facebook takes it as spam. Right ?
so how to tell user's friends that this user is using "abc" ? i saw when some people play games similar notification is shown in ticker.
how is it done?
This is not spamming unless you are literally spamming everyone's wall. As long as you are
just posting a singe line of status "user_name is using ABC" once or twice a day, you are fine.
Here is link from facebook dev's docummentation to post status messages.
https://developers.facebook.com/docs/reference/api/post/
Further more, it is always recommended that you read policies yourself before implementing any api.
https://developers.facebook.com/policy/

How do I authenticate a user for my facebook app and then post to their wall for them?

I created a facebook app under my companies facebook account. We have a website that has a lot of customers and I want to them to be able to authorize our app to post on their own walls for them.
How can I do this in PHP?? I have looked all over but can't find a good coded example.
Search google for an example with the publish_stream permission.

Facebook notification on third party software

Is there a fb api that allows user to get fb notification or latest wall post by friend on their own website? this means that the software will requires user fb credential.
If you are trying to create your own site that gets data from the users latest wall posts, you can use the Facebook Graph API https://developers.facebook.com/docs/reference/api/
To pull most recent wall posts (in JSON format), use:
https://graph.facebook.com/me/feed?access_token=<UserTokenHere>
The Facebook Graph API site above gives lots of good info on how to use this. If you are trying to do something else, please clarify your question.
Cheers!

post message to facebook news feed

I am running an ecommerce website in php. When facebook connected users make a search or post a sale, I want it to automatically post messages to the user's facebook news feed. I wonder how i could do it? any articles I can read about?
Thanks,
For that you need to take publish_stream permission from user. Read this

Categories