Code Monkey home page Code Monkey logo

Comments (8)

ptribe avatar ptribe commented on July 21, 2024

Hey blounty,

Was having the same issue. Was able to solve it by adding 'graph.facebook.com' to the ExternalHosts under the PhoneGap.plist

from phonegap-facebook-plugin.

blounty avatar blounty commented on July 21, 2024

Hi Ptribe, Great!

How about for Android?

I get the same issue there.

Thanks

from phonegap-facebook-plugin.

ptribe avatar ptribe commented on July 21, 2024

Blounty,

Working on it, will let you know...

from phonegap-facebook-plugin.

blounty avatar blounty commented on July 21, 2024

Thanks!

from phonegap-facebook-plugin.

davejohnson avatar davejohnson commented on July 21, 2024

Good catch guys! On Android you would need to create phonegap.xml file like this: https://github.com/phonegap/phonegap-android/blob/master/framework/res/xml/phonegap.xml

from phonegap-facebook-plugin.

pchang78 avatar pchang78 commented on July 21, 2024

Hey Dave... not trying to reopen this issue but just need some clarification... I'm still getting the same error.

I can fix the error manually by going into Facebook and remove my app from the app settings and then re-authenticate.

Are you saying... all we have to do is put the phonegap.xml in the res/xml directory? Are there any other modifications that are needed to any other files?

Thanks

from phonegap-facebook-plugin.

davejohnson avatar davejohnson commented on July 21, 2024

Hey guys, just tried the latest with phonegap 1.1.0 and we don't even need the phonegap.xml file.

You will need your app_secret in the androidmanifest.xml like this: <meta-data android:name="app_secret" android:value="b082c4620cdac27e0371f2c674026662" />

And check that you are using the right app id in your init call:

FB.init({ appId: "app_id", nativeInterface: PG.FB });

Do you see any javascript errors in adb logcat or eclipse ddms?

from phonegap-facebook-plugin.

pchang78 avatar pchang78 commented on July 21, 2024

Hi Dave,

Let me clarify what's happening to me. It does work for me initially. The way I get the error is when I logout and try to reconnect to facebook. When I try to reconnect, instead of bringing up the login dialog, I get a blank page with a top toolbar that says Permissions in the title and button to the right that says "Okay". When I hit okay, it gives me those errors.

As I said in the post before... the way I can fix it is by removing the app from my app settings in Facebook and authorizing again.

from phonegap-facebook-plugin.

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.