I have a client who has recently raised a problem of self publishing articles facebook. The client has created his application that seems correctly configured but the publication does not appear on his page. The message sent back by the facebook API is the following: (# 100) Parameters of the URL have the ability to specify the picture, name, thumbnail or description.
The Oauth connection is running correctly, the problem is with the publication.
To perform tests on my side, I became an administrator on its facebook application and then filled in my own page created for a long time already. No problem to publish on my personal page with the API facebook. I created a second page always with the same account then changed the url of the page on which to publish and I reproduce the problem. There seems to be a problem checking the user's rights on the page.
While searching on Google, I could find that is a security implemented on version 2.11 of the API with the domains but I did not find any way to solve my problem. Does anyone have a solution? Why I can publish on old pages but not on new pages created from the same account.
Thank you in advance for your assistance and sorry for bad english :)
Related
(Really sorry for my English, it's not my mother language)
We must display for a client, the last article published on their Linkedin page.
He gave me access to his account, and I was able to create an application linked to his page ("verified" link).
In the "Auth" tab of the application, I was able to recover "Client ID" and "Client Secret".
Now I need to authenticate with OAuth 2.0, but I don't understand what I need to do.
Should I go through a "3-legged OAuth" or a "2-legged OAuth"?
I have the impression that the second option is the best, because, if I understood correctly, it does not require manual authentication every X days.
Maybe I'm wrong?
I also read that I could go through the "Product" tab of the application and add the "Marketing Developer Platform". But is this really where I should orient myself?
As a reminder, the goal is, on an internet site (intranet to be exact), to put together the last article posted on the client's LinkedIn page.
Thank you in advance for your help.
Yes, you need the marketing development platform access to do this add marketing development platform in your product list. But it is not simple as you think you have to fill the application after that you have to submit that for a review then you will know your result
I am trying to fetch the latest Facebook posts from our company's page to show them on our website. It already worked until a few weeks ago, Facebook unfortunately changed some of their security guidelines. Initially I sended some requests to the Facebook Graph API using PHP, the App ID, the App Secret and the User Token to create an page accesstoken and fetch my company's posts.
Thanks to the new guidelines new created Apps do not have the "manage_pages" permission you need to create an page accesstoken. To recieve this permission you have to get your App reviewed by Facebook which seems quite laborious to me.
Can you think of another way to fetch my posts? I mean those are posts from a page I created. I do not really understand why there are so many security issues.
Thanks!
You don’t need to get your app reviewed, if it is not intended to be used by the general public.
App Development FAQ: My app is only used by a small number of people, who are all listed in the Role section of the App Dashboard - do I need to go through Login Review?
No, it does not have to be reviewed. If your app is only used by a very limited number of people […] it's completely normal to list them all as having different roles in your app's dashboard. They can be listed as Admins, Developers or Testers
Instead of using "https://graph.facebook.com/v2.8/me?..." to fetch just posts from my own pages I am now using following URL to fetch any public posts:
"https://graph.facebook.com/v2.8/{PAGE-ID or PAGE NAME}?fields=
name,picture,feed.limit(100){full_picture,created_time,message,likes,
comments,type,link}&access_token={USERTOKEN}"
I have created an account in Facebook Developers, and I've generated the token with long live (never expire). I've correctly published the post with my script PHP. The problem is that the only person who can read it is me. It isn't published in my Fan Page. It is neider published in my personal profile. It is in an intermediate point between my personal profile and my Fan Page.
The app created in Facebook Developers is active and published. I just want to publish my blog posts in my Fan Page.
The permissions configured in my Access Token are: manage_pages and publish_actions. I have in another platform and it works perfectly. Can you give me any suggestions? Thank you in advance.
Your app is not made public yet (check app dashboard, Status and Review tab, “Do you want to make this app and all its live features available to the general public?”) – as long as it is not set live, all content created through it will only be visible to you.
You always need to do this for each api key.
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.