Giter Club home page Giter Club logo

Comments (11)

vomchik avatar vomchik commented on September 2, 2024

i have the same problem (((

from openfb.

vomchik avatar vomchik commented on September 2, 2024

@kieranpaul I install new InAppBrowser plugin http://plugins.cordova.io/#/package/org.apache.cordova.inappbrowser
After this everything works )))

from openfb.

ryanicle avatar ryanicle commented on September 2, 2024

I still have the same issue even after installing Cordova InAppBrowser plugin. Is there anything that I should do?

from openfb.

vomchik avatar vomchik commented on September 2, 2024

No, i just install plugin.
But, i have suspicion that plugin not loading. Check your config.

from openfb.

ryanicle avatar ryanicle commented on September 2, 2024

@vomchik Thanks! I got this working now. This is what I did.

$ cordova plugin add https://github.com/phonegap/phonegap-facebook-plugin

In config.xml, I added

<gap:plugin name="com.phonegap.plugins.facebookconnect">
 <param name="APP_ID" value="YOUR_FACEBOOK_APP_ID" />
 <param name="APP_NAME" value="YOUR_FACEBOOK_APP_NAME" />
</gap:plugin>

from openfb.

Louis777 avatar Louis777 commented on September 2, 2024

I have tried all solutions on this thread and many others, none seem to help me. I am getting the Success Security Warning message on my android device. It works very well on my browser (I am using Visual Studio 2013 update 4).

I do have the following:

InAppBowerser version 1.0.0, installed as a plugin
On my FB Dev. Setting -> Basic I have: http://localhost:4437/
Om my FB Dev. Setting -> Advance I have: https://www.facebook.com/connect/login_success.html
Side Notes:

Initially I was getting "the redirect_uri is not supported", I fixed this by placing:

runningInCordova = true;
right after this

document.addEventListener("deviceready", function () {
runningInCordova = true;
alert("runningInCordova");
}, false);

in the OpenFB.js file, since on my adroid device the above listener was not executing. This now gives me access to the FB login screen.

But after login in I get the Success Security Warning message. I have spent 3 days trying to resolved this issue. I have tried many, many things but nothing seems to works. I am sure there is a solution out there.

Is there a way to fix this?

Please help, Thank you in advance.

Louis

from openfb.

xgenem avatar xgenem commented on September 2, 2024

I am willing to help since I have already faced this issue. Can you send a
snippet of your code?
On Tue, May 12, 2015 at 9:15 AM Louis777 [email protected] wrote:

I have tried all solutions on this thread and many others, none seem to
help me. I am getting the Success Security Warning message on my android
device. It works very well on my browser (I am using Visual Studio 2013
update 4).

I do have the following:

InAppBowerser version 1.0.0, installed as a plugin
On my FB Dev. Setting -> Basic I have: http://localhost:4437/
Om my FB Dev. Setting -> Advance I have:
https://www.facebook.com/connect/login_success.html
Side Notes:

Initially I was getting "the redirect_uri is not supported", I fixed this
by placing:

runningInCordova = true;
right after this

document.addEventListener("deviceready", function () {
runningInCordova = true;
alert("runningInCordova");
}, false);

in the OpenFB.js file, since on my adroid device the above listener was
not executing. This now gives me access to the FB login screen.

But after login in I get the Success Security Warning message. I have
spent 3 days trying to resolved this issue. I have tried many, many things
but nothing seems to works. I am sure there is a solution out there.

Is there a way to fix this?

Please help, Thank you in advance.

Louis


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

from openfb.

Louis777 avatar Louis777 commented on September 2, 2024

I would really appreciate your help:

Here is how I call it:
openFB.init({ appId: '5555555555555', tokenStore: window.localStorage });
openFB.api({
path: '/me',
success: function (data) {
console.log(JSON.stringify(data));
document.getElementById("userFBID").innerHTML = data.id;
document.getElementById("userFullName").innerHTML = data.name;
document.getElementById("userEmail1").innerHTML = data.email;
SetDBConn();
},
error: errorHandler
});

My openfb.js is the same the one you posted here:

https://github.com/eugenemaning/openfb.js/blob/master/openfb.js

with the exception that I had to add [ runningInCordova = true; ] after the addEventListener, since it doesn't seem to execute when running in my Android device, the code now looks like this:

document.addEventListener("deviceready", function () {
    runningInCordova = true;
}, false);
runningInCordova = true;  //I added to make sure it know that we are running Cordova

If I don't add it, it says: [ the redirect_uri is not supported ]

Thanks in advance.

Louis

from openfb.

Louis777 avatar Louis777 commented on September 2, 2024

I am sorry for being a pest, but I can't find any solution for my issue. It seems to be a very easy solution, but I can't find it. I've spend many days on this already.

Please help.

from openfb.

ccoenraets avatar ccoenraets commented on September 2, 2024

If you had to manually add runningInCordova = true, it probably means you didn't include cordova.js in index.html:

<script src="cordova.js"></script>

Note: cordova.js doesn't have to be available (and shouldn't be) in your www folder. It is automatically injected by the Cordova build process.

Also make sure you have the inappbrowser plugin installed:

cordova plugins add org.apache.cordova.inappbrowser

from openfb.

superandrew avatar superandrew commented on September 2, 2024

I am having this problem, too. I am literally cursing myself for using this library. I am using inappbrowser, I was forced to set runningInCordova = true because in android it didn't get recognized (I am building with pg:build)

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.