Publishing user's activities from Facebook App - php

I am developing a Facebook application, and I am trying to publish the users' activites in my application in the user's wall, like when the user comments on post, the story feedback appears in his wall and is available to his friends to see
I have read these tutorials:
https://developers.facebook.com/docs/opengraph/tutorial/
As well as the following threads:
How to publish Actions to Facebook Graph API with parameters in call URL
Facebook- Publishing a story to user's wall
I am confused about which one I should follow because openGraph seems a bit complicated to implement....so what is the best practice to achieve my requirement?

If you want to post activities on users wall, open graph is preferred way and you will get large distribution(marketing) also.
You can use the PHP Official sdk from facebook, which makes you job easier.
To post open graph actions, you should take publish_actions extended permission from user.
or
You can post on user's wall using /me/feed method requires [publish_stream][3] extended permission.
SDK tutorial
https://developers.facebook.com/docs/reference/php/
Open graph sample application
Download Social Cafe app and see their code
https://developers.facebook.com/docs/opengraph/samples/

You can use Javascript SDK as well, and sometimes that is actually getting better. For example, recently Facebook enforces that users have to read for at least 10 seconds before the app publishes news:Read. These are the usecases that can be handled very efficiently with javascript sdk and jquery (or similar client-side technology).

As for April 2018,
The publish_actions permission is no longer available.

Related

How to get the "publish_post" equivalent

Scenario
I'm building an application that needs the ability to post to users wall (personal profile) on behalf of a user on facebook. I remember before the way that I would do it is request a permission "publish_actions" but reading through their documentation i came to this page:
https://developers.facebook.com/docs/graph-api/changelog/breaking-changes/#login-4-24
which states that that is being deprecated.
They recommended an alternative which is using their sharing product found here but this seems like it would break one of the functionalies of my current application (I dont want to share content i want users to post it to whenever they choose to on whichever account they choose to).
Question
Is there a way to get posting to a users wall and NOT an event, page or group. If i'm correct I can still post data to events, pages and groups via API as normal but to a users wall its different? I need to post on their wall via api but i can't seem to find the permission.
My facebook api graph version for my app is 3.0 and im using their PHP SDK to make the requests.

Facebook V2.3 to getFriends list

Is there any solution to get complete Facebook friends list without asking for APP permission?
Submitted for review many times but Facebook is not approving.
We need it in one of our applications.
As stated in Facebook API documentation, you can't
http://webcache.googleusercontent.com/docs/graph-api/reference/v2.3/user/friends

how to integrate with facebook timeline to share activities?

I want to integrate with facebook timeline so that each activity on my website gets shared on user's facebook timeline.
i earlier used to use the publish stream permission to publish the activities on user's wall, and a second dialog comes for the publish stream permission while getting signed up on my website.
however i have recently observed that some sites are doing something different, while getting signed up on these sites, you will never get second dialog for publish stream permission and each activity will be shared n fb wall.
will be great if someone could explain me in detail, also i am doing all this in php.
What you're describing is Open Graph actions (OG). Instead of 'publish_stream', OG-enabled sites are using 'publish_action' which doesn't require confirmation. All OG actions are published against OG objects, which are usually webpages. Have a look at the introduction to Open Graph at https://developers.facebook.com/docs/opengraph/, then follow the tutorial at https://developers.facebook.com/docs/opengraph/tutorial/ to see how to implement it for your site.

How to write on a friend's wall using facebook API

Am working on an application that should be able to write unto the wall of a friend after the user authorizes it. Currently, i can write unto my wall successfully through the application using the facebook graph API. Am facing difficulty in writing to a friends wall using the app. I have not been able to figure out whether i need extra permissions to do so or if need to do something different. I would be grateful if anyone could help me with any lead.
Thanks.
You have to get an extended permissions for your app: publish_stream.
For reference see: http://developers.facebook.com/docs/authentication/permissions/
publish_stream - Enables your app to post content, comments, and likes to a user's stream and to the streams of the user's friends...
Good luck

Post on user's wall with the Application

Is there any way to post on user's wall as the Application and not as user?
It's hard to provide a definitive answer without some more context as to what sort of post you want to do, but the answer is probably no.
We dont provide a a mechanism for pages or applications to write on a users wall directly.
As a Page, you can post on your wall, and the messages you write will be shown to a subset of the users who have liked your page in the news feed.
As an application you can use stream.publish to post on the users wall/timeline with an application attribution. But it's not as the application per se.
With Timeline Apps you can use the Open Graph to publish actions the user has taken with your app, like Spotify does. So you're posting what the user has done with your app, rather than posting as the user.
HTH

Categories