Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8306171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:16:37+00:00 2026-06-08T18:16:37+00:00

every one..i have one issue while runing phonegap facebook plugin.i have Downloaded phonegap facebook

  • 0

every one..i have one issue while runing phonegap facebook plugin.i have Downloaded phonegap facebook sdk from GITHUB & i have followed steps given on project documentation.steps i have done is

1) i have created phonegap project with phonegap vesrsion 1.4.1

2) i downloaded facebook connect plugin for phonegap version 1.4.1 from GitHub

3) in assets www folder i have this files

assets->www->

  • facebook_js_sdk.js

  • pg-plugin-fb-connect.js

  • phonegap-1.4.1.js

  • index.html

4) i have put ConnectPlugin.java in my src folder under package name “com.phonegap.facebook”

5) i have put this <plugin name="com.phonegap.facebook.Connect" value="com.phonegap.facebook.ConnectPlugin"/> this under res->xml->plugin.xml file

6) under the libs folder i have this three files

  • facebook_js_sdk.js

  • facebook-js-patch(i have copied this patch files directly from GitHub project)

  • phonegap.jar

7) and finally in my manifest file i have given this <meta-data android:name="APP_ID" android:value="APP_SECRET" />

so,i have followed all above mention steps by this when i am clicking on login button facebook login dialog popup but when i am givining user name password and than login i am getting this error all the time as shown in below image

enter image description here

and when i click on retry button page is redirected to facebook home page directly inplace of going back to my application….

another issue is that clicking on Me Button also doesn’t work it shows such error

enter image description here

i am stuck on this issue..is it because of facebook plugin or i am going wrong some where?

if any one have faced it before than guide me on it
Thanks in Advance

EDIT

i solved my issue regarding login status…i did not initialize my app_id in html file…
another thing need to remember is that we don’t need to give <meta-data android:name="APP_ID" android:value="APP_SECRET" /> in manifest file…

still having one query when i am clicking on me button it shows me error as u can see in above alert msg… how to fix that?

EDIT(ALL QUERY SOLVED)

me function also works fine now
from ConnectPlugin.java class i changed function getResponse() to this below mention code

public JSONObject getResponse() {
String response = "{" + "\"status\": \""
        + (facebook.isSessionValid() ? "connected" : "unknown") + "\","
        +
        // "\"session\": {" + "\"access_token\": \""
        // + facebook.getAccessToken() + "\"," + "\"expires\": \""
        // + facebook.getAccessExpires() + "\","
        // + "\"session_key\": true," + "\"sig\": \"...\","
        // + "\"uid\": \"" + this.userId + "\"" +

        "\"authResponse\": {" +

        "\"accessToken\": \"" + facebook.getAccessToken() + "\"," +

        "\"expiresIn\": \"" + facebook.getAccessExpires() + "\"," +

        "\"session_key\": true," +

        "\"sig\": \"...\"," +

        "\"userId\": \"" + this.userId + "\"" +

        "}" + "}";

try {
    return new JSONObject(response);
} catch (JSONException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
}
return new JSONObject();

}

now i am able to fetch friend list also
For more infor regarding this u can check this ….FB.api('/me') always giving error code:2500 in phonegap android

Thanks Every One

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T18:16:38+00:00Added an answer on June 8, 2026 at 6:16 pm

    Issue resolved. I did not initialize my app_id in html file…
    another thing need to remember is that we don’t need to give <meta-data android:name="APP_ID" android:value="APP_SECRET" /> in manifest file…

    I hope it helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi every one I have these classe @Entity @Table(name = login, uniqueConstraints={@UniqueConstraint(columnNames={username_fk})}) public class
Hello every one I have wrote a simple code in html5 in which I
Hai every one I am developing an windows application in which i have to
I have to run a bit of code in the background every one second,
I have a windows service that does some intensive work every one minute (actually
I have a directory full of JPEGs. I want to convert every one of
I am writing my own blog (every one should, it's good experience). I have
I have a page with many tooltips. I want to show/hide every one seperatly
i have one setinterval method which call php script every 3 sec to check
I have one particular FLA that is crashing every time I try to compile

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.