bisrael / cordova-plugin-facebook Goto Github PK
View Code? Open in Web Editor NEWCordova Plugin for iOS and Android Facebook SDK
License: MIT License
Cordova Plugin for iOS and Android Facebook SDK
License: MIT License
hi @bisrael
awesome plugin
but when I am using PGB (build.phonegap.com) 5.1.1 and your plugin from npm
https://www.npmjs.com/package/cordova-plugin-facebook
it will cause only Android build fail (ios is build success)
these are build fail log information
Build Date: 2015-09-14 04:02:09 +0000
----------------------------------------------
/project/cordova/node_modules/q/q.js:126
throw e;
^
Error: Project contains at least one plugin that requires a system library. This is not supported with ANT. Please build using gradle.
at /project/cordova/lib/build.js:183:27
at _fulfilled (/project/cordova/node_modules/q/q.js:798:54)
at self.promiseDispatch.done (/project/cordova/node_modules/q/q.js:827:30)
at Promise.promise.promiseDispatch (/project/cordova/node_modules/q/q.js:760:13)
at /project/cordova/node_modules/q/q.js:574:44
at flush (/project/cordova/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:442:13)
I know PGB for now not already support "gradle"
so...is there any way can change it or ... ?
It seems a quite a long time since there have been any updates or issues opened regarding this plugin - is it still supported?
If so, I got it working just fine on Android, however on iOS I am getting a run build error in Xcode pointing to this line:
#import <FacebookSDK/FacebookSDK.h> - file not found?
Note : Without Facebook Native App same Login process scenario is working. (within SFSafariViewController).
Hello!
I'm using Cordova 6 with deeplinking and Facebook plugins. Facebook applications always returns failure callback in app on auth, i think it's because deeplinking plugin intercepts Facebook data on bootstrap.
I just find this solution (BranchMetrics/cordova-ionic-phonegap-branch-deep-linking-attribution@1e9a23c) but i can't find this part of code in plugin.
Can i successfully receive Facebook plugin callback using it along with deeplinking callback?
thanks , i see code very clear , but how to me can use this in my source html code like
facebook.init
facebook.login
facebook.logout
Thanks
I'm doing a project in Phonegap that requires an option to login with Facebook.
The installation of the plugin is correct but when i try it out on the browser i get the following message:
Error: exec proxy not found for :: CordovaFacebook :: login
Now, I understand that it only is supposed to work on Android or IOs so i also tried running the project in the phonegap app for Android that, as far as I understand it builds the project in a native Android enviroment. But even then it still doesn't work. I don't get any interaction to continue, like if my button wasn't working. I checked with some "alerts" with some messages and they appeared but the function dies once it gets to the CordovaFacebook.login()
Here's the code i'm using if it's any help:
function getDataFB(e){
//console.log('start FB');
//alert('start FB');
e.preventDefault();
window.CordovaFacebook.login({
permissions: ['email', 'user_likes'],
onSuccess: function(result) {
if(result.declined.length > 0) {
alert("The User declined something!");
}else{
alert('Correct FB connection');
}
},
onFailure: function(result) {
if(result.cancelled) {
alert("The user doesn't like my app");
} else if(result.error) {
alert("There was an error:" + result.errorLocalized);
}
}
});
}
I have tried many days to build the app on Eclipse.
Even using https://github.com/jeduan/cordova-plugin-facebook4#aff9a08a86cc6c6a18019f7adc2896ddf97c11cd or https://github.com/jeduan/cordova-plugin-facebook4
Both are failed. When I try the "aff9a08a86cc6c6a18019f7adc2896ddf97c11cd" version. It seems there is no Facebook SDK has installed. All "com.facebook.*" are not resolved.
Build was successful, but failed after imported to Eclipse.
Anyone can help me? Thanks.
i have created hash key and used it in app setting in facebook
but not working and show message invalid hash key not equal any hash key
hi Blake Israel . this is great plugin for cordova , thank you for your work
how to me can get access token for facebook init ?
that mean when i use login function i can get access token , but i want when app loaded the next time i can get access token without callback login function
like : CordovaFacebook.getAccesstoken() so if that readly i can use this token , else i will call to login function
Thanks
Hi,
Thank you for write this pluggin,
i'm trying to get loginStatus, is there a way to do this?
Thank you.
Greetings, and thank you for writing this plugin!
I've included this plugin in my ionic v1 app, inject it into my service as $cordovaFacebookLogin, and try to authenticate to Facebook like this:
$cordovaFacebookLogin.login({ permissions: [] })
When I testing on iOS 10.2 I get back JSON that looks like this:
{"userID":"1234567890","cancelled":true,"success":false,"accessToken":"token-here","error":true}
But I didn't cancel! When I debug the access token here it says it's valid:
https://developers.facebook.com/tools/debug/accesstoken
My question is: how do I best determine what the error is here?
In case it helps, when I run that function the Facebook app opens, and I see a page that is pretty-much blank except for the word "cancel" in white at the top. Then after a few seconds the Facebook app closes and returns to my app with the above JSON.
Thanks again!
Greetings,
This plugin is working great - thank you for developing it! - ...except for one user (who happens to be my boss, unfortunately).
When he tries to authenticate using Facebook on iOS in our app, he stays in our app and sees an alert box that includes Friends List permissions with "Don't Allow" and "OK" options, and I'm only asking for email and profile permissions. Me and everyone else we get correctly sent to the Facebook app page with "Continue as [user]" and a tiny "Cancel" as options, and correctly see that we only want email and public profile.
Can you please help me understand why this one user seems to be getting the undesirable alert-box style authorization display and the additional friends list permissions request, whereas the rest of us get the correct in-app display?
Thank you,
-wade
In my app, when the user clicks on "exit-bt", the logout method don't works, what i do?
$('.exit-bt').click(function () {
CordovaFacebook.logout({
onSuccess: function() {
alert("The user is now logged out");
}
});
CordovaFacebook.logout();
});
What I need?
Hey,
thank you for this awesome plugin that was actually the only one that worked for my use case! The SDK has evolved a little after the publishing and there seems to have been some changes in the communication mechanism (based on SO answer). Would it be possible to update the SDK at least for iOS?
On Android everything goes really smoothly already now.
There also only seems to be one thing to be taken into consideration, when updating from 4.3 to 4.10, based on the upgrade notes and it seems to quite trivial.
I'd also be really happy to test it for you! :)
Hello,
I am using the cordova-plugin-facebook and I have difficulties to login.
First here is my plugin configuration inside config.xml
<gap:plugin name="cordova-plugin-facebook" source="npm">
</gap:plugin>
then in my code I have
CordovaFacebook.login({
permissions: ['email'],
onSuccess: function(result) {
if(result.declined.length > 0) {
alert("The User declined something!");
}else { alert("good login"); }
},
onFailure: function(result) {
if(result.cancelled) {
} else if(result.error) {
alert("There was an error:" + result.errorLocalized);
}
}
});
I made a button to login, and once I tap on it, it opens a new webview with this facebook message
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 this URL you must add a valid native platform in your App's settings.
As I understand the error message is asking me to add a valid native platform such as android or iOS, but I am using the cordova-plugin, to avoid using a native platform !
Am I missing something ?
What facebook app configuration do I need to follow in order to use the login feature ?
Hi,
I already made a succesful connection with an account that uses the e-mail to sign on to FB, however, when I try to use a FB account that sign-on to FB using the telephone number, I am getting the following error message:
SERVER_ERROR: [code] 1675030 [message]: Error performing query. [extra]: Errors while executing operation "ProxyAuth AppLogin StartQuery": At Query.proxy_auth_app_login_start: Failed to resolve field.
Do you know if there is a restriction that only FB accounts that logs in with email can be used and the other ones no?
when add plugin using cordova cli plugin added done
and apk extracted when install it not installed
CordovaFacebook.logout({ onSuccess: function() { alert("The user is now logged out"); } });
When I use the logout method and then I want to login again the dialog displayed as authorized. the logout function not working. how can i solve logout problem ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.