Obtain facebook token access from authorization

I have a Facebook Account (Lets call him Admin), a Page, and an Application... I have problems to obtain extended token for a Server Script to post in Page's Wall. In a lot of tutorials, they recommends to call this URL:

https://graph.facebook.com/oauth/authorize?client_id=[APP_ID]&scope=manage_pages,publish_stream&redirect_uri=http://www.facebook.com/connect/login_success.html

I login with the Facebook account, apply the permissions, but instead of give me the code/token, I got a page with this:

Success ADVERTENCIA DE SEGURIDAD: trata la direcci├│n URL como si fuera tu contrase├▒a y no la compartas con nadie.

With font red... I've tried with 3 browsers, but same results. What I'm doing wrong? Do you know a good (and updated) tutorial?

Answers


You are using the wrong flow and/or not handling the current authentication flow.

That flow is for desktop applications and you must parse the access token that is returned in the url thus the message,

SECURITY WARNING: Please treat the URL above as you would your password and do not share it with anyone.

Because the access token is given in the open.

See this page for mor information https://developers.facebook.com/docs/facebook-login/login-flow-for-web-no-jssdk/


Need Your Help

Does verite Timeline perform well with huge data sets?

javascript data-visualization timeline

I need to visualize a huge set of data inside a timeline. I found 'verite Timeline' looks promising but I don't have any experience with it, using really many data sets. Is here anyone who could te...

MS Word: Changing the template, depending on the print paper

templates printing ms-word

I have this situation in the office. We have A4 paper and letter paper. The letter paper has a logo of the company already printed, but not the A4.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.