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
New Contributor
vibhanshu
Posts: 3
Registered: ‎09-07-2011
My Device: 9860
My Carrier: Vodafone

FaceBook integration (Send menu) - RIM OS 7.0

Hi Everyone,

 

This post is about the new Facebook or rather social feature introduced in RIM OS version 7.

 

Now I do know that this feature is basically added in the "Send Menu" - where a new option of Facebook or Twitter pops up.

 

But I dont really want that - What I would like to do is have a specific Button in my App which would be labeled as "Post on Facebook". So the flow is something like:

 

Page 1 - Button in the app "Post on Facebook" (not in the Send Menu)

Page 2 - Faceook Login page (if not logged)

Page 3 - Pre-defined Text "Vibhanshu is playing whatever game on BlackBerry 9900" (just an example)

 

How can I get an API which allows me to directly call Facebook within application, without going through the Send Menu API ?

 

Thanks a lot,

Vibhanshu Karn

Please use plain text.
Developer
simon_hain
Posts: 15,870
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: FaceBook integration (Send menu) - RIM OS 7.0

welcome to the support forums

you can use the sample facebook integration from the Facebook BlackBerry SDK:

sourceforge.net/projects/facebook-bb-sdk
----------------------------------------------------------
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.
@SimonHain on twitter
Please use plain text.
New Contributor
vibhanshu
Posts: 3
Registered: ‎09-07-2011
My Device: 9860
My Carrier: Vodafone

Re: FaceBook integration (Send menu) - RIM OS 7.0

[ Edited ]

Hello Simon,

 

Thanks for the welcome and super fast response. We tried and we got following result (below). We are setting up the permissions and creating an instance of Application Settings. But the token that is returned at the runtime goes invalid. Below is a snippet for your reference:

 

[proprietary code removed]

 

 DEBUG RESULT

[186.367] 2011-09-09 10:04:20 [INFO] BF-Navigate: https://www.facebook.com/dialog/oauth?scope=user_about_me,user_activities,user_birthday,user_educati...

[186.367] 2011-09-09 10:04:20 [INFO] Access Token not found.

 Have seen anything familiar ?

 

Regards

Vibhanshu

Please use plain text.
Developer
simon_hain
Posts: 15,870
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: FaceBook integration (Send menu) - RIM OS 7.0

been some time since i worked with the facebook sdk.
check if the auth cookie is correctly send, i used wireshark for this
----------------------------------------------------------
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.
@SimonHain on twitter
Please use plain text.
New Contributor
vibhanshu
Posts: 3
Registered: ‎09-07-2011
My Device: 9860
My Carrier: Vodafone

Re: FaceBook integration (Send menu) - RIM OS 7.0

We are getting the Access Token as Null. We have the correct Id and Secret.

Please use plain text.
Contributor
Anzy
Posts: 36
Registered: ‎06-15-2011
My Device: 8900
My Carrier: Airtel

Re: FaceBook integration (Send menu) - RIM OS 7.0

Hello to all...

I am getting problem when I use FB and TW on 7.0 os .. Blackberry 9860.

In 5.0 & 6.0 devices FB and TW works fine , but I dont know why the  FB & TW not working in 7.0 os.

can any one also facing this issue...or I am doing somthing wrong

please help me.

 

 

Please use plain text.