Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 243
Registered: ‎07-22-2011
My Device: BlackBerry Z10
My Carrier: AirTel

FaceBook API error code 11 (Method Deprecated)

[ Edited ]

Hi All,

 

I am getting an error when i am using facebook(like or share) in my application, if i chage the settings according to below img then it is working but i want permenet solution.

Here this error is getting whether using jar file or Strawberry package.

Plz can any one help to slove the error perminetly.

 

 

 

 

Thanks & Regards,

Lakshman K

----------------------------------------------------------
Feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.

New Member
Posts: 1
Registered: ‎03-17-2011
My Device: 8520
My Carrier: claro

Re: FaceBook API error code 11 (Method Deprecated)

Tengo el mismo problema. Parece ser que sucede con aplicaciones creadas recientemente.

El mismo codigo que genera error con una aplicacion nueva, no tiene problemas con aplicaciones creadas hace tiempo.

Highlighted
Contributor
Posts: 16
Registered: ‎02-03-2012
My Device: Bold 9700
My Carrier: Airtel Ng

Re: FaceBook API error code 11 (Method Deprecated)

I had this same issue but i tried this and it worked! I think you should do the same:::::

 

  • go to your app's Facebook page which is https://developers.facebook.com/apps when you are logged into Facebook
  • Click "Ëdit App" (near top right corner),
  • Under Settings (left column) click "Advanced",
  • Scroll down to the "Migrations Settings" section.
  • Enable the "July 2012 breaking changes" (2nd from bottom in the Migrations Settings section)

you can also try reading the Migration airticle on facebook developers site.

 

New Contributor
Posts: 8
Registered: ‎06-22-2010
My Device: 9700
My Carrier: o2

Re: FaceBook API error code 11 (Method Deprecated)

@DonaldEpig... i just tried your suggestion and it works. But does this workaround on  the FB SDK still works after July 2012?...

Contributor
Posts: 16
Registered: ‎02-03-2012
My Device: Bold 9700
My Carrier: Airtel Ng

Re: FaceBook API error code 11 (Method Deprecated)

I dont' think it will work! enabling the "July 2012 migration" just helps you test to see if the oncoming permanent upgrade on the FB SDK is going to have an effect on your app so you can correct them before July, in other words by July the "Display=wap dialogs" will be permanently deprecated. So I am not really sure how that will affect your app.

New Contributor
Posts: 8
Registered: ‎06-22-2010
My Device: 9700
My Carrier: o2

Re: FaceBook API error code 11 (Method Deprecated)

I tried to change the facebook login url from display=wap into display=touch and enabling the july2012 breaking changes, but it still doesnt work. 

 

"https://m.facebook.com/dialog/oauth?scope=" + appSettings.getPermissionsString() + 
"&redirect_uri=" + appSettings.getNextUrl() + 
"&display=touch&client_id=" + appSettings.getApplicationId() + 
"&response_type=token", lcf, LOADING

 Facebook still delivers me the same api error code: 11

Contributor
Posts: 16
Registered: ‎02-03-2012
My Device: Bold 9700
My Carrier: Airtel Ng

Re: FaceBook API error code 11 (Method Deprecated)

I found out from the fb documentation that "display" is not really required for constructing an OAuth Dialog URL,

 

Firstly::Try writing your link in this format:::

http://www.facebook.com/dialog/oauth/? client_id=YOUR_APP_ID &redirect_uri=YOUR_REDIRECT_URL &state=YOUR_STATE_VALUE &scope=COMMA_SEPARATED_LIST_OF_PERMISSION_NAMES

And try removing "display=scope" from your url. Maybe that should work.

New Contributor
Posts: 8
Registered: ‎06-22-2010
My Device: 9700
My Carrier: o2

Re: FaceBook API error code 11 (Method Deprecated)

 

 

without specifiying the display mode, facebook use the page mode as default, but the browser renders it so bad, only half of the page

 

the touch display mode renders good only for the login page 

Contributor
Posts: 16
Registered: ‎02-03-2012
My Device: Bold 9700
My Carrier: Airtel Ng

Re: FaceBook API error code 11 (Method Deprecated)

Have you tried "display=popup"? Maybe you should try that.

Developer
Posts: 172
Registered: ‎01-02-2012
My Device: 8520 curve
My Carrier: compny

Re: FaceBook API error code 11 (Method Deprecated)

Hi every one

 

 i am using the Facebook Blackberry ADK available on  http://sourceforge.net/projects/facebook-bb-sdk/. and in that i am trying to use my own App Id and secrete key but it is giving error .

 

 can i use my own App Id and secrete key How  please late me know.

 

thanks