Comments (11)
i have the same problem (((
from openfb.
@kieranpaul I install new InAppBrowser plugin http://plugins.cordova.io/#/package/org.apache.cordova.inappbrowser
After this everything works )))
from openfb.
I still have the same issue even after installing Cordova InAppBrowser plugin. Is there anything that I should do?
from openfb.
No, i just install plugin.
But, i have suspicion that plugin not loading. Check your config.
from openfb.
@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.
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.
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 thisdocument.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.
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.
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.
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.
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)
- 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.