GithubHelp home page GithubHelp logo

bisrael / cordova-plugin-facebook Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 20.0 70.67 MB

Cordova Plugin for iOS and Android Facebook SDK

License: MIT License

Objective-C 94.47% Java 4.17% JavaScript 0.74% C 0.62%

cordova-plugin-facebook's People

Contributors

bisrael avatar tgsouto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cordova-plugin-facebook's Issues

PGB(build.phonegap.com) will build fail by Android

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

Is this plugin still supported? Having iOS issue

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?

Cordova iOS - Facebook Native App callback return issue?

  1. I have integration/implement Facebook Login in Demo.framework.
  2. Import Demo.framework in my own Cordova Custom Plugin.
  3. Within (FBLoginViewController.m) Custom Plugin call my Demo.framework's function (it's working).
  4. Create Cordova Demo and within demo i have < button /> tag with onClick() method in index.html file and call fbLoginMethod (function) which is define in Custom Plugin's FBLoginViewController.m file.
  5. When FBLoginManage Class open Facebook Native App for Authentication. After Authentication success FBSDK delegate not getting return at index.html.

Note : Without Facebook Native App same Login process scenario is working. (within SFSafariViewController).

Error: exec proxy not found

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 but failed.

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.

invalid hash key

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

get Access token

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

Login status

Hi,
Thank you for write this pluggin,

i'm trying to get loginStatus, is there a way to do this?

Thank you.

How to debug error responses?

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!

Debugging help: One User Getting Auth Request for Permissions I'm Not Asking For

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

Basic Logout Don't works

Logout not working with this code:

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?

Update to newest iOS SDK

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! :)

cordova-plugin-facebook / login

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 ?

Thanks
device-2016-11-06-100902

Issue login with FB Accounts that uses telephone number to authenticate

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?

app not installed

when add plugin using cordova cli plugin added done
and apk extracted when install it not installed

Logout not working

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 ?

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.