I recently made my first facebook app which works as a "connection" for posting messages to different walls. I got it all working and I now want to test it with other users. If I want a second user to be able to post to the walls through my app what needs to be added? The users can perfectly login through my php script but they are being refused when they try to post to the walls.
Should the users be added in the "Roles" section of my app? If yes, then they have to be "verified developers"?
Thanks in advance.
Check this out this might help you - http://thinkdiff.net/facebook-connect/php-sdk-3-0-graph-api-base-facebook-connect-tutorial/
Or if you can post your code, then i can surely help you to make it available to any user to use your app to post on their walls
If the user wants to post anything to their walls using your application, then they need to grant publish_stream extended permission to your application and using their access_token, you can allow them to post anything to their walls from your application and not just one user, any number of users will be able to do it, so if you post your code, i can help you with it.
Related
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.
I am trying to integrate FB with my website. (USING PHP)
1.) In that I am in need to list all the groups related to my loggedin in user in my website who is connected with their FB account in it(I have oauth_token too). Also i want to allow my user to post something in their FB group listed here using FB API.
2.) Next thing I want get all the frd list of the logged in user and to post messages/wall post to them.
I tried more in google I am not able to know whether it is possible or not. I have done only FB login integration and posting in wall.
Can any one please tell me whether the above 2 things are possible or not. Thats enough. If possible I can contiue surfing on that and make it. If not possible I'll stop surfing on that.
I'm trying to develop a little app for Facebook, and I'm facing a problem with the API.
After a few searches, I started to think the graph API doesn't allow to do what I wanna do...
Basically, I want to post automatically a message on a group wall. I have a website on which people can post their message. This community also has a Facebook group, and my point is to automatically post a copy of messages from the website, on the Facebook group. Each time a new message is submitted on the website, of course.
I know that apps and pages can’t post on a group wall by themself.
So, I considered creating a Facebook account, working like a bot, to post my messages on the group. I guess I have to get a long-lived access token for this user, and renew it manually when it expire. I don't want to have to login myself manually, but it's not a big deal if I have to renew my token time to time.
Is that even possible? Is there a better trick to do that?
I'm a bit confused by the Facebook API, and I'm sorry for this question. Even more because of the changes on the fb API...a lot of answers through the web are now deprecated. What I am looking for is a start -an idea- to be able to develop my app.
Thank you for your help :)
Yes, it is really simple:
First, You'll need access_tokenn with the offline_access permission (this way it will last for 2 months)
Then, store this access_token somewhere and do:
Post to group wall:
$fbk = new Facebook(...);
$bfk->setAccessToken($yourBotAccessToken);
$postId = $fbk->api("/$fbGroupId/feed/",'post',$message);
You can even post replies to the first post:
$fbk->api('/'.$postid.'/comments/','post',$reply);
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
I've been building a web app that uses facebook integration for easier registration/login and notifications for the users. However, for the notifications I want to be able to post to a users facebook wall when something happens on our site.
Really I see two possible problems with doing this. First being that the user will most likely not be logged in to our website when the notification needs to happen. Second I have not found a way to post to the feed using any identity other than the current logged in user.
So to reiterate exactly what I'm trying to do. When some action takes place on my site involving Bob, I want the websites application to post on Bobs wall notifying him of the action as if the application is one of Bobs friends. From some of the things I've seen while researching this, it seems as if facebook might not treat applications like users and I might have to go through a page to accomplish what I want. But really I'm ok with that.
What you need to do is to ask for the offline_access permission. Then you can store their graph id property after they login/authorize to your site's database. Then you just post to that graph id instead of instead of /me. In your case you would then POST a request to the "$user_graph_id/feed" endpoint with whatever parameters you usually have.