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 7961843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:09:51+00:00 2026-06-04T05:09:51+00:00

I am using version 5.0 of BBplugin in eclipse and the FB jar lib

  • 0

I am using
version 5.0 of BBplugin in eclipse and the FB jar lib ( FacebookBlackBerrySDK-v0.8.25.jar )
i get an error
API error code :11
API Error Description : This method is deprecated
Error Message: Display=wap dialogs have have been deprecated . You can temporarily enable them by disabling the “july_2012” migration.They will stop working permanently on july 1,2012.

http://supportforums.blackberry.com/t5/Java-Development/FaceBook-API-error-code-11-Method-Deprecated/td-p/1671793

I checked out this link ..
But it isn’t giving the solution

I tried out for july 2012 migration solution only
i have not tried the solution display=wap into display=touch

as i don’t know where it is

i get the following error when i run it on simulator

http://tinypic.com/view.php?pic=191m3o&s=6

import com.blackberry.facebook.ApplicationSettings;
import com.blackberry.facebook.Facebook;
import com.blackberry.facebook.FacebookException;
import com.blackberry.facebook.inf.User;

import net.rim.device.api.ui.Field;
import net.rim.device.api.ui.FieldChangeListener;
import net.rim.device.api.ui.component.ButtonField;
import net.rim.device.api.ui.component.Dialog;
import net.rim.device.api.ui.component.EditField;
import net.rim.device.api.ui.container.MainScreen;


public class MyScreen extends MainScreen implements FieldChangeListener{

    private User user;
    String NEXT_URL = "http://www.facebook.com/connect/login_success.html";
    String APPLICATION_ID = "My App id"
    String APPLICATION_SECRET = "My Application Secret";


    String[] PERMISSIONS = Facebook.Permissions.ALL_PERMISSIONS;
    private Facebook fb;
    private ApplicationSettings as;
    private String id="";
    private EditField ef;

    private ButtonField bf;

    public MyScreen(String id ) {

        //      this.user = user;
        this.id = id;

        ef = new EditField("Hi", " ");
        bf = new ButtonField("Publish");
        bf.setChangeListener(this);
        add(ef);
        add(bf);

    }

    private void FBPost(){

        ApplicationSettings as = new ApplicationSettings(NEXT_URL, APPLICATION_ID, APPLICATION_SECRET, PERMISSIONS);
        Facebook fb = Facebook.getInstance(as);



        as = new ApplicationSettings(NEXT_URL, APPLICATION_ID, APPLICATION_SECRET, PERMISSIONS);
        fb = Facebook.getInstance(as);
        try {

            user = fb.getCurrentUser();
            String result = user.publishStatus(ef.getText());

            if ((result != null) && !result.trim().equals("")) {
                Dialog.inform("Publish Success.");
            } else {
                Dialog.inform("Publish Failed.");
            }
        } catch (FacebookException e) {
            // TODO Auto-generated catch block
            Dialog.inform("Exception in myscreen");
            e.printStackTrace();
        }


    }



    public void fieldChanged(Field field, int context) {

        if(field==bf){

            String text = ef.getText();
            FBPost();

        }

    }
}

Above is my code Please
check out

  • 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-04T05:09:52+00:00Added an answer on June 4, 2026 at 5:09 am

    Check your app setting on facebook. and in Migrations disable last three options(July 2012 Breaking Changes, Include Checkins with Statuses, August 2012 Breaking Changes).Hope it will help you 🙂

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

Sidebar

Related Questions

This is for a jQuery Mobile app using version 1.0.1. I'm trying to get
I am using version 1.4 and getting this error: The remote name could not
This is an interesting bug of Eclipse. I am using: Version: Indigo Release Build
Using version v3.8 I got this behaviour with dragged markers. a) marker.setMap(map) --> Marker
I have set up a NInject (using version 1.5) binding like this: Bind<ISessionFactory>().ToMethod<ISessionFactory>(ctx =>
hope all is well. I am using Version 7.0. This morning I was struggling
Using a version control system for your source code (like subversion ) makes sense
Currently using MySQL version 5.1.6 This is my first real world build and so
I cannot find documentations for this function anywhere, I am using version 1.7 s.crossVisitParticipation
In my jqGrid (using version 4.0.0), I get an unnecessary horizontal scrollbar but when

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.