Comments (11)
Change openfb.js so that the oauthRedirectURL is https://www.facebook.com/connect/login_success.html when run on device:
...
startTime = new Date().getTime();
// START INSERT: These three lines are necessary for making this work on a real mobile device:
if (runningInCordova) {
oauthRedirectURL = 'https://www.facebook.com/connect/login_success.html'
}
// END INSERT
loginWindow = window.open(FB_LOGIN_URL + '?client_id=' + fbAppId + '&redirect_uri=' + oauthRedirectURL + '&response_type=token&scope=' + scope, '_blank', 'location=no');
...
Now it works on the device and in the browser.
from openfb.
if you load the app from http://yourserver/yourapp/index.html, then you should write: http://yourserver/yourapp/oauthcallback.html. If you test it from, http://localhost/app/index.html, specify http://localhost/app/oauthcallback.html. For Cordova use, you should write: https://www.facebook.com/connect/login_success.html.
from openfb.
Is it thus to cordova?
openFB.init('xxxxxxxxxxxx', 'https://www.facebook.com/connect/login_success.html');
from openfb.
https://www.facebook.com/connect/login_success.html URI does not work on Android.. When I click the login button nothing happens..
PD: I've added org.apache.cordova.inappbrowser pluggin..
from openfb.
hello,
i have set this 'https://www.facebook.com/connect/login_success.html' url as valid oAuth url in facebook app but getting following error at facebook page of android phone
given url is not allowed by the application configuration : one or more of the given URLs is not allowed by the app’s settings. To use ths URL you must add a valid native platform in your app’s settings
can any one help me to configure my facebook app for facebook login in meteor android/ios app??
i have also posted question on stackoverflow
http://stackoverflow.com/questions/32539886/facebook-login-using-meteor-cordova-app
from openfb.
Did you make sure you added the plugin?
On Sun, Sep 13, 2015 at 5:44 PM Dhaval Rajani [email protected]
wrote:
hello,
i have set this 'https://www.facebook.com/connect/login_success.html' url
as valid oAuth url in facebook app but getting following error at facebook
page of android phonegiven url is not allowed by the application configuration : one or more of
the given URLs is not allowed by the app’s settings. To use ths URL you
must add a valid native platform in your app’s settingscan any one help me to configure my facebook app for facebook login in
meteor android/ios app??—
Reply to this email directly or view it on GitHub
#1 (comment).
from openfb.
yes i have added plugin [email protected]
from openfb.
Did you have the AP ID included in your init() call?
On Sun, Sep 13, 2015 at 5:47 PM Dhaval Rajani [email protected]
wrote:
yes i have added plugin [email protected]
—
Reply to this email directly or view it on GitHub
#1 (comment).
from openfb.
i am developing meteor app so this plugin is handling all thing i have specified app id in mobile-config.js
from openfb.
It should be when you initialize the plugin
On Sun, Sep 13, 2015 at 5:55 PM Dhaval Rajani [email protected]
wrote:
i am developing meteor app so this plugin is handling all thing i have
specified app id in mobile-config.js—
Reply to this email directly or view it on GitHub
#1 (comment).
from openfb.
yes i declared
from openfb.
Related Issues (20)
- window.open works in Emulator, doesn't work on iPhone
- Not able to get User UUID on login to facebook
- redirect_uri in not correct in cordova HOT 4
- minified and non-minified versions are not the same HOT 1
- when click on login button in facebook
- Lost token after login HOT 1
- The redirect_uri is not supported
- Logout Issues
- The redirect_uri URL is not supported! HOT 4
- Please I need more detailed documentation for how to integrate with phonegap project, no framewroks used
- Error: Permission denied to access property "openFB
- How to make openFB use native app for login instead of in-app-browser (ionic) HOT 4
- Fetching email address
- Login infinity loop on iOs
- is possible to login automatically using Facebook App Native? HOT 1
- window size
- Cordova (cocoonjs) working on Android but not iOS
- Can't able to fetch friends email id
- Facebook Policy Warning for App
- PWA compatibility
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openfb.