post message to facebook news feed - php

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

Related

Display my company linkedin page updates on my site?

Is there a way to display my Company page status updates from linkedin on my site?
I have checked the API but all I can see is information about company and no status updates.
Try this https://api.linkedin.com/v1/companies/{id}/updates?event-type=status-update, be sure you have accesstoken.

Post to facebook wall offline access

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

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!

Facebook API. Notification via social plugin comments

I have a page with a comments social plugin, I would like to know if it's possible to notify users who have already commented on the form.
I can subscribe to the comment.create function, but how do I send notifications?
I know actual notifications are now impossible, but is there another way? (Sending a message from the user perhaps?). With the format of my page, they will want to know when someone has posted.
I haven't tried that, it's just an idea.
https://developers.facebook.com/docs/reference/plugins/comments/ - look at the section describing way of getting comments via Graph API.
E-mail way:
You can ask each user who logs into your site to allow you to get his e-mail address. Then, you would subscribe to this event, list users who commented an article and send them an e-mail.
Message way:
You need a Facebook page for your site. Then you would receive a token for this page (manage_pages permission), get publish_stream permission in behalf of this page and publish message to streams of users who commented.
It may be also possible to send user a message on behalf of a page using Graph API, however I haven't seen anything like that in docs
This is not allowed by facebook, the attempt will result something like this:
{
"error": {
"message": "An unknown error has occurred.",
"type": "OAuthException"
}
}
This is because the social plugins do not "live" inside facebook, they are being distributed to 3rd party sites, and to prevent bad content posted from bots/apps to display in 3rd party websites, facebook has disabled this option.
Search for WordPress Plugin called Ultimate Facebook Comments Email Notify. I hope it will solve your problem...and you can also take some idea from his script which he is using in the plugin....hope this helps :)

Categories