Error with facebook login in php

Asked

Viewed 205 times

3

I’m having trouble connecting to Facebook using sdk php.:

inserir a descrição da imagem aqui

configuration on facebook Developers:

inserir a descrição da imagem aqui

code snippet: loginfacebook.php

inserir a descrição da imagem aqui inserir a descrição da imagem aqui inserir a descrição da imagem aqui You can help me?

Note: I’m still in development, so I use the same localhost.

  • You could ask the question what code is doing the redirect to the Facebook or opening the dialog box?

  • Take a look at this: https://stackoverflow.com/a/24253054/1377664

  • Welligthon, I edited and placed the code snippets

  • The correct is to put the code in the body of the question, read Post code as image. Also enter the file code config.php.

1 answer

0

Apparently missing add the web platform in the settings:

Settings -> Basic -> Add Platform

config

Choose the option "Site"

config

Set the url and save

inserir a descrição da imagem aqui

  • Tom, I already include this WEB platform... Even now I took it from the localhost, and I went up to a valid domain, and it keeps giving the same error.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.