Questions tagged [openfb]

OpenFB OpenFB is a micro-library that lets you integrate your JavaScript applications with Facebook. It works for both browser-based and Cordova/PhoneGap apps. OpenFB has no dependency: You don't need the Facebook plugin when running in Cordova. You also don't need the Facebook SDK. OpenFB allows you to login to Facebook and execute any Facebook Graph API request. Here are a few code examples...

OpenFB

OpenFB is a micro-library that lets you integrate your JavaScript applications with Facebook. It works for both browser-based and Cordova/PhoneGap apps.

OpenFB has no dependency: You don't need the Facebook plugin when running in Cordova. You also don't need the Facebook SDK.

OpenFB allows you to login to Facebook and execute any Facebook Graph API request.

Here are a few code examples...

Login using Facebook:

openFB.login(callback, {scope: 'email'});

Get the user's list of friends:

openFB.api({path: '/me/friends', success: successHandler, error: errorHandler});

Post on the user's feed:

openFB.api(
    {
        method: 'POST',
        path: '/me/feed',
        params: {
            message: 'Testing the Facebook Graph API'
        },
        success: successHandler,
        error: errorHandler
    });

Source: GitHub (OpenFB)

12 questions
2
votes
0 answers

How to redirect to Ionic app after Facebook login flow?

After problems using ngCordova OAuth I decided to implement OAuth through use of OpenFB, I followed the tutorial here: https://ccoenraets.github.io/ionic-tutorial/ionic-facebook-integration.html This is completely fine for when developing locally…
nickmcblain
  • 155
  • 1
  • 2
  • 12
1
vote
0 answers

Login with facebook in IONIC with ngOpenFb

I don't know he oauth works in detail, but I know the overview. So I have ionic app running in localhost (ionic serve) and a facebook created. I have not put any callback url in advanced settings of fb app. And I am using ngOpenFb to accomplish…
1
vote
1 answer

Strange Ionic CLI Error After JS file Change

I'm using openfb.js in my application, I had to change 1 line in openfb.js file, while Application was normally working. then something strange happened, when I type Ionic serve in the API I get an error, which seems like in someway, Ionic is…
ImadBakir
  • 553
  • 1
  • 7
  • 26
1
vote
0 answers

Handle facebook login window close action

I am using openFB for facebook login. openFB.login( function(response) { if (response.status === 'connected') { // do something } else { console.log('Facebook login…
donsalari
  • 61
  • 1
  • 2
  • 10
0
votes
2 answers

ionic facebook login, Unable to login with openFB, Error in domain url

i want to login via facebook on ionic app. but it is working fine on browser but in mobile device it fires error as. Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and…
Puneet Uppal
  • 195
  • 10
0
votes
0 answers

Firebase Facebook Authentication Error with openFB in Ionic

I can successfully access the facebook userdata via the OpenFB API, but when I try to use: var auth = $firebaseAuth(ref); auth.$authWithOAuthToken("facebook", accessToken) to authenticate the user through Firebase, I get the following…
0
votes
1 answer

ionic/cordova openFB Facebook Login not working (SECURITY WARNING) on android device

I'm using the openFB library in an ionic project. My settings are: ionic version: 1.7.12 cordova-version: 6.0.0 openFB version: (latest commit) when running the app in my browser, everything works fine. In my Phone (android 5.0) there is a…
0
votes
0 answers

Cordova: Can't able to get user information, it shows 'malformed access token'

I am about to finish my cordova application where i am using the facebook social login. I am trying to access the user information from the graph API that openfb.js is calling. My code snippet is this: function login() { …
user5019715
0
votes
1 answer

Ionic view + OpenFB

I have an app that uses openFB. while running it with ionic serve, it works fine. When I try to test it with Ionic view the facebook login page doesn't come up. any idea how to solve it? Thanks! Sophain.
user4761235
0
votes
2 answers

openFB Facebook Login Javascript

Im trying to use OpenFB to create a Facebook login for my app that i'm creating using Phonegap. I am getting the security message after logging in on a white screen. This is my code: openFB.init('1573489959575513'); // Defaults to sessionStorage…
jord49
  • 542
  • 2
  • 17
  • 37
-1
votes
1 answer

I am using ngOpenFB on an ionic app, but I dont manage to get user's email

Login seems to go ok, with the email permission, however when doing: var deferred = $q.defer(); $openFB.api({ path: '/me/email' }).then(function( res ) { deferred.resolve(res); //angular.extend(me, {picture: res.data.url}); …
BenA
  • 59
  • 1
  • 2
  • 7
-1
votes
1 answer

What oauthRedirectURL in openFB should look like, using a cordova app?

I came across this openFB plugin to make facebook requests without the sdk, that can be used in cordova, I got it to log in the user in facebook, the thing is as oauthRedirectURL I end up in a white page, that says Success and I'm not sure how to…
Toni Michel Caubet
  • 19,333
  • 56
  • 202
  • 378