Giter Site home page Giter Site logo

Comments (11)

wielinde avatar wielinde commented on August 20, 2024 3

@maggialejandro

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.

ccoenraets avatar ccoenraets commented on August 20, 2024

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.

icaro56 avatar icaro56 commented on August 20, 2024

Is it thus to cordova?
openFB.init('xxxxxxxxxxxx', 'https://www.facebook.com/connect/login_success.html');

from openfb.

maggialejandro avatar maggialejandro commented on August 20, 2024

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.

dhavalrajani92 avatar dhavalrajani92 commented on August 20, 2024

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.

xgenem avatar xgenem commented on August 20, 2024

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 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??


Reply to this email directly or view it on GitHub
#1 (comment).

from openfb.

dhavalrajani92 avatar dhavalrajani92 commented on August 20, 2024

yes i have added plugin [email protected]

from openfb.

xgenem avatar xgenem commented on August 20, 2024

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.

dhavalrajani92 avatar dhavalrajani92 commented on August 20, 2024

i am developing meteor app so this plugin is handling all thing i have specified app id in mobile-config.js

from openfb.

xgenem avatar xgenem commented on August 20, 2024

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.

dhavalrajani92 avatar dhavalrajani92 commented on August 20, 2024

yes i declared

from openfb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.