Languages

Menu
Sites
Language
Native API for Facebook/Twitter

Hi Friends,

I want to access facebook account from my application and share photos on facebook.

Is there any API available to do it because i am only getting APIs for web applications but not for Native apps.

Is it possible on native apps?

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

12 Replies
john Smith
Hi, I about to know that there is some Add-on-SDK needed for that, to access facebook and twitter. Thank you,
Manasij Roy
http://developer.bada.com/library/Migration-Tool-Installation-for-Converting-bada-Applications-to-Tizen-Applications http://developer.samsung.com/bada/repository/add-on/migration-tool/
Ravi Kumar
Hi Manasji/Smith I have this migration tool installed and have used this to convert the bada application to tizen.. but the Api support has been removed from tizen that were used in bada to authenticate the social service provider. Please suggest
Manasij Roy
From the documentation of Samsung::SnsGateway :- "This class is deprecated due to the operation policy of the Tizen Server. In case of Facebook and Twitter features, alternative APIs will be provided in the near future." So I guess we can use SnsGateway / SnsAuthenticator APIs until they provide the alternatives.
Awais Zaka
Has anyone tried to compile a Tizen project that was migrated from bada and used the SnsAuthenticator API. I tried with compatibility mode enabled and got this error: no type named 'SnsAuthenticator' in 'Tizen::App::ServiceApp ( Tizen::Social::Services::SnsAuthenticator* __pAuthenticator). This isn't surprising since Tizen::Social does not support the SNS API. I'm using SDK 2.1.0 beta though it appears it's not supported in the latest 2.1 either. Any ideas how to get this working?
Manasij Roy
You can try replacing Tizen::Social::Services with Samsung::SnsGateway, add the corresponding headers and link with SnsGateway (after installing the add-on sdk). Let us know if you find any success.
Awais Zaka
Hi Manasij, did what you suggested and it does compile ok. However it only works on the emulator. SNSAuthenticator::Authenticate() crashes on the device. The developer device has the latest firmware, Ref.Device-PQ. Any ideas to get it working on the device ?
Manasij Roy
Have you installed open-gl libs on target ? somewhere in the forum (or in the release note I read that without this the web wont work) https://wiki.tizen.org/wiki/Enable_3D_Acceleration_on_Tizen
Manasij Roy
Have you installed open-gl libs on target ? somewhere in the forum (or in the release note I read that without this the web wont work) https://wiki.tizen.org/wiki/Enable_3D_Acceleration_on_Tizen
Awais Zaka
Manasij, it worked fine after installing the open-gl libs. Many thanks for your valuable suggestions.
Kien Vu

Hi, SnsGateway sdk not exist in above link, how to install it?

Jirka Prazak

I have figured it out and implemented it using the web control, seems like the only way.  I have posted the code on how to do it on GitHub.  You can get it @ https://github.com/bohemius/tizen-facebook-auth

Hope this helps

-J