I developed a simple app on Faceobok that posts something on user wall. My issue is that the post isn't seen on wall stream, so he/she will probably never read it.
I developed this app in PHP with Facebook PHP-SDK and to post on user's wall i use: $facebook->api($userId .'/feed/','post',$attachment).
Is it possible to show the post also on user' stream? (Maybe I forget to add a key/value in the attached array...)
Alternatively, is it possible to send a notification to the user in place of post or a notification linking to the wall post?
The post is personalized, so this is why I don't use a facebook page.
Thanks in advance.
Maybe you want to send them an app-to-user request …? http://developers.facebook.com/docs/requests/
But keep in mind that you have to delete these requests yourself, once the user followed them.
Posting on the user stream is not possible (posts are visible just on user's friends stream).
Notification are not allowed, just for requests.
Related
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.
It simple question, if user give me permission to post on his wall by api and then user delete that post, can i have notification for that?
As far as I know no, you'd need to poll the post ID using the user's access token to see if it's still there
I want to know if it is possible to get the Facebook Posts or Twitter Tweets from a user at the time that they are created/posted.
I know I can get the old posts/tweets from a certain user, but I need to get them when they are created. Otherwise I must check all the time to know if the user has posted or tweeted something.
Is there a way to accomplish this?
For twitter, see the streaming api - specifically user streams.
For facebook, there are real-time updates.
For Facebook, you can have your HTML code subscribe to the http://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/ on the "edge.create" which says a like happened. Then you ajax to your server that the user liked it and you store that information in your database.
For Twitter, you can subscribe to events as well. See https://dev.twitter.com/docs/intents
I would like to know if it is possible to post to a user's wall AS an app. So, my app would be interpreted like a user and writes on the wall of the target user. So far, I only found ways to post to a user's stream as himself with some information of my app attached.
Is this possible? If so, how ? (I am using the PHP and JS SDK)
Yes this is possible but not advisable because Facebook is going to stop this method pretty soon. Basically your app can only publish to a user's own wall in the future.
I've searched for many many hours on this topic through google and also read a lot of questions here, but nothing solved my problem.
I'm making a facebook application, the application has offline_access and publish_stream permissions.
I can successfully post to users' wall.. but the user doesn't get any notification that the app posted to their wall.
I want the user do receive a notification whenever the app on their wall.
also is it possible to make the application post without user's name, (i.e with page name or application name)..
Thanks
you will have to use another social channel to generate
notifications
https://developers.facebook.com/docs/channels/#notifications such
as send a request.
To my knowledge, neither a page or application can post to a users wall. You can however have one user post to another users wall, or a user to a page/app wall.