I got a trouble. I searched whole stackoverflow and still cannot find the answer.
I read, that there were some changes with facebook scripts that you can't post to other users walls (i got the simple script and still got the message "(#200) Feed story publishing to other users is disabled for this application".
I got my own app, got the secret etc.
I am trying to do the button, that when user on my site (which is connected with facebook to it) clicks on it, there pops up a form with information to fill:
To which friend we will post on the wall (list of friends)
Message (to fill)
Link (link must be added from me in the script).
If You can help me, i will be thankful.
I looked in the whole stackoverflow, tried many scripts, phpsdk etc. Many scripts worked, but only for posting on my own wall + i cant include this friends list to it.
If you got some ready scripts, i will be thankful too.
Posting on the friends wall using Graph API is deprecated now. See this discussion: How to post on a friend's Timeline after the February 2013 migration takes effect?
Only possible way to post on a friends wall- Feed Dialog
If you want to invite them then copy the js code from here and open your facebook page to invite your friends and pest this in console.
to open console got to browser setting >> more tool >> Developer tool >> and the last is console tab.
Pest the code and press Enter...
All Friends will invited to like the page...
Copy the script
Related
A team of some friends and I have come up with an app/product idea that we have been working on. I have to be vague on exactly what the details are, but hopefully I can explain it well enough to have the questions we have answered.
First, we have a web server with a database - we have developed all of the code for that in PHP. Each user will have a device which when an action is performed on the device, it sends a message to our server, and the PHP code on our server handles the message and stores the sent data in the appropriate fields in our database.
We want to run this through Facebook - we have an app and a Facebook page created for this. The idea is that when a user performs an action on his or her device and the message is sent to the server, the PHP code will automatically make a post on the Facebook page on the user’s behalf (not on the Page’s behalf).
Between all of us on working on this project, we have spent many days and many hours trying to figure out how to make the automatic post to the page. It’s extremely difficult googling this topic since all of the various examples are using different versions of the Facebook SDK (we are using the latest). There are lots of somewhat similar type questions/examples, but we can't find one that answers specifically what we are asking. In fact, we aren’t even sure that anybody but an ‘admin’ can post on a Facebook page with the new SDK, any longer. I do see this link in the Facebook developer section, https://developers.facebook.com/docs/graph-api/reference/v2.5/page/feed, where it says under the Publishing section:
Permissions
A user access token with publish_actions permission can be used to publish new posts on behalf of that person. Posts will appear in the voice of the user.
So, it sounds as if a user can post to the Facebook page if it is given an access token with publish_actions permission, yet we can’t find any example of code of this actually being done. Could anybody explain how to do the automatic posting to the page on a user’s behalf (hopefully, using PHP, since that is the language we are using on the server side), or at least point us to a good example? We are all experienced developers, but this is the first time any of us has done anything with Facebook development. So we certainly aren’t amateurs, but with Facebook development, we are. We may be overlooking something obvious, but after seeing so many links, my mind is jello.
A summary of our questions:
1. Can it even be done with the latest Facebook SDK that a post can be made to a Facebook Page for our product on the user’s behalf? (to be clear, we are talking about the Facebook Page we created for our app, not a user's page)
2. If so, what specific permissions do we need to give the user, just the publish_actions one? We don’t want to give the user too much permission to be able to screw up our page, of course.
3. Can this be done automatically with PHP from the server?
Any help would be GREATLY appreciated!
I'm trying to develop a Facebook App that works using Unity3D as front-end but using a PHP Web server to do the Facebook request saving the private key there.
I tested various things like uploading photos and comments an then it get reflected the new App Insigths of the App as Stories Published.
The thing I can't achieve is to see the Likes and Comments of those Stories, it remains 0.
¿There is something that I don't understand about the Likes/Comments there, or I'm doing something bad?
Thank you all.
P.D: Sorry about my English ^^'
Edit:
I can't provide example code of what i've done but I can explain it.
Actually my front-end do get requests to a backend PHP server that do the requests to Facebook.
When a user want to log in the server return the login url in a string and the front-end launches a Internet navigator (in my case is Google Chrome).
The callback url given to Facebook go to a site that closes automatically the navigator and putting in first plane my front-end.
From there you can do the request to the back-end to publish stories in Facebook and then log-out
Actually this is what my application do and it works. The only problem is that the comments and likes that those stories got are not reflected in the App Insights section.
Firstly, I actually spent a lot of time to search for the answer but I still cannot find a proper solution, so I decided to post a question here, hopefully some one can provide me at least ... some hints.
My problem is:
According to Facebook road map, There's a change in "Removing ability to post to friends walls via Graph API ", this affects an inviter project which I'm currently working on for my company. Now, I cannot post invitation on friend's wall, this will make our app completely useless.
I tried to figure out 2 solutions as below:
Using Facebook Graph API to post a feed on my wall and tag the friend that I want to invite on that feed. This solution works fine but it will post thousand of feeds on wall and it is not good.
Using Facebook Chat XMPP I sill cannot manage to make it work. But by using this, there's a high change that our application can be banned by Facebook because of spamming.
My question is: Besides 2 solutions above, is there any better way to post invitation on friend's wall?
If there's no other solution, can anyone tell me how to post a feed that is hidden from timeline using GraphAPI? (For timeline not be polluted by invitation feed)
Now, I cannot post invitation on friend's wall, this will make our app completely useless.
Maybe you were not supposed to “spam” walls for the purpose of inviting people in the first place … and that loophole is being closed now.
Requests/Invites are the mechanism you’re supposed to be using for stuff like this: https://developers.facebook.com/docs/requests/
I got an issue in my project and i need your help.
I want to catch recent activity of user on my web-page, for eg: suppose if user clicks on my url and afterwards clicked on some hyperlink to download a file. So here user has done two activities - first clicked on hyperlink and second downloaded an image.
Basically I want to capture this activity of the user (ie activity done by user on my website) and post it on the user's "Recent Activity" section on his Facebook profile. Is it posible to do this using Facebook open graph API? I am new to it, any suggestion will help me a lot.
Open Graph Follows will allow you to post recent activity, specifically the section on "Notifications and Stories for Follow Activity". The person will have to be following you and install your app. But then you can post "stories" such as "Mark drank an iced tea". Make sure you tell Facebook you need the "publish_actions" permission for your app.
As for how to implement this, use ajax calls back to a PHP script that will post these for you.
Documentation here
I've got some messy thing with Facebook "Share this" module.
Some time ago Share button stopped working properly. When someone clicks Share this, link with content appear at his wall, but people can't see this action in recent posts, they need to open his/her wall to see this. What happened with Facebook? Anyone know?
It is probably determined to be low quality by Facebook algorithms and thus not showing in the recent feed. If this is published via an application, check the insights on your application.