facebook sdk graph api v3.1 - facebook

I am using graph api v3.1 with facebook sdk https://github.com/facebook/php-graph-sdk . I need to do facebook login : I have this error Unable to load this URL: The domain of this URL is not registered in those of the application. To import this URL, add all the domains and subdomains of your application to the Domains field of the application settings.
app settings and facebook login settings:
image 1
image 2
image 3

Related

How to solve Sign in with Facebook after deploy to Heroku?

I built a website and i worked on my localhost , after i deployed my project to Heroku i cant access login with facebook from mobile phones.
I gen an error:
“Can't load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and sub-domains of your app to the App Domains field in your app settings.“
This is my project:
https://fierce-escarpment-77863.herokuapp.com/
I dont have any idea how can i solve this

Aws amplify facebook login app - broken url detected

Simple question really.
How do I make my facebook app live.
Steps taken...
I made a very basic project by running:
create-react-app;
amplify init;
Then I created a facebook app in facebook for developers.
Using the app id and app secret from that app I ran:
amplify add auth
amplify push
At which point my amplify project was created in AWS.
I took the user pool domain and added it to the facebook app:
App domains: [Userpool Domain]
Site url: https://[Userpool Domain]/oauth2/idpresponse
At this point I can use aws amplify in my react project to login using facebook, so it must be set up correctly.
But I can't set my facebook app to live, since it complains about a broken url detected.
And using the sharing debugger I see the https:///oauth2/idpresponse url returns a response code 400.
Can anyone please tell me.
How do I fix this??
This is the error thrown by facebook:

how to give phonegap app a valid redirect uri

i am begginner in phonegap and using android studio for editing and running phonegap coding
i have to add facebook login in my phonegapp app ,for this i am using openfb.js plugin
link -- https://github.com/ccoenraets/OpenFB
sucessfully integrated all things but when running its showing me valid oauth redirect uri error
what will be "Valid OAuth redirect URIs" if my project file is saved in computer c drive and not on localhost

phonegap 3.3 iOS Facebook Connect redirect_uri must be absolute

I am developing ios native application using phonegap. This application has barcodescanner and facebook connect features. I am using phonegap version 2.9.0.
The user has to login with facebook credentials when the application is launched. There is a button in the application and it will redirect to browser (safari) for asking facebook login when the button is clicked. Also, this application has facebook post feature.
It was working fine (facebook connect and barcodescanner) with phonegap version 2.9.0.
Now, facebook connect (for login) is not working after I upgrade phonegap version 3.3.0.
It says "redirect_uri must be absolute" after the browser (safari) is launched.
I am using this link. After I upgrade the phonegap version to 3.3.0, I did not change my application logic. I am using following code for facebook initialize and facebook login when the button is clicked.
Facebook init.
FB.init({ appId: "<appid>", nativeInterface: CDV.FB, useCachedDialogs: false });
Facebook login
FB.login(function(response){},{scope:"email"});
I tried changing the appid also, Same response.
I have included JS files for phonegap framework and facebook connect framework and they are loaded when the application is loaded. I am sure about it. There are no errors while building the app.
Please let me know what I am doing wrong.
--Sridhar
redirect_uri errors usually raise if you don't give the same link the one u used while creating FB app on developers page something like below.
Don't use redirect_uri in initializing or methods just add in developers page FB app. That should work.
This link could be helpfull.
but, I can't make it work the auto install
phonegap local plugin add https://github.com/mallzee/phonegap-facebook-plugin.git --variable APP_ID="[FB APP ID]" --variable APP_NAME="[FB APP NAME]"
it said to my: [error] Variable(s) missing: APP_ID, APP_NAME
This fixed it for me. Apparently cordova failed to copy the APP_ID and APP_NAME variables from the plugin config into the .plist so I had to go in and edit the .plist file that cordova build generates with the value of the variables.
Under platform/ios/<appname>/<appname>-Info.plist search for $APP_ID and $APP_NAME in that file, and replace them with their values.
After doing that the login worked normally.

Facebook app, how to have a online version with a local version?

Hi so i recently uploaded my facebook app. so i can only input 1 url for Website with Facebook Login. So how do i keep working on my local version while still serving the online version??
get another API and app secret from
www.facebook.com/developers