语言

Menu
Sites
Language
Social Network Sharing

Hello, Is there a NATIVE way to use social network sharing on TIZEN ?

 

Otherwise, is there a good sharing social network plugin works good on tizen ??

 

thank you

响应

8 回复
Lakshmi Grandhi

Hi,

Currently Web Framework doesn't support this share functionality, kindly check in native forum for help, but there are lot of open source javascript libraries supporting share functionality for several social network sites.

 

http://sharrre.com/

https://github.com/iatek/jquery-share

http://socialitejs.com/

 

Mejri Mejri

Thank you for your quick responce :)

 

Well i tried something is to load facebook share page in an iframe, but the problem is i get this error

 

Refused to display 'https://www.facebook.com/' in a frame because it set 'X-Frame-Options' to 'DENY'.

 
Here is my code : 
 
                             <div data-role="popup" id="popupDialog" data-dismissible="false" style="width:400px;height:600px;">
                                    <div data-role="content" data-theme="a">
                                    <object data="http://www.facebook.com" width="400" height="500"> <embed src="http://www.facebook.com" width="600" height="400">                                      </embed> Error: Embedded data could not be displayed. </object><br>
                                    <a href="#" data-role="button" data-inline="true" data-rel="back" data-theme="b">Cancel</a>
                                </div>
                            </div>
Lakshmi Grandhi

Did you add access policy in config file

 

<access origin="*" subdomains="true"/>

Mejri Mejri

I did now and i got same error :(

 

The problem is : i am building a web application, when i press share on FACEBOOK or TWITTER, the social network share page will be open in the application and i can not get back to the application, and when i inspect open presseses i find only the application open so i can not getback  to the app

Lakshmi Grandhi

currently there is no support for back button if you open url using window.open, you need to monitor url and should close the window as suggested in the post

https://developer.tizen.org/forums/web-application-development/implementing-oauth-mobile-app.

 

or you can launch borwser app using application control with required url


 

Mejri Mejri

I think " launch borwser app using application control with required url" will be a better solution now

 

I really apreciate ur support and ur time

 

Thank you very much

 

Regards

Alex Dem

Hi,
https://developer.tizen.org/documentation/articles/social-network-services-on-tizen
For Twitter you could use PIN-based or xAuth authentications, but these ways
are not applicable for Facebook ( Facebook supports OAuth only).
Tizen [Web apps] does not support OAuth (due to security you can't get callback_url in Web app which is stored on your file system)

There is way Create [Native App] based on Web View and you will able to control all transitions between local html pages/URLs from Native App and will able to extract OAuth verifier/tokens which comes to registered redirect_uri. You could implement OAuth in this case. But this way requires many efforts.

To launch browser with desired url  - it is most real way for Facebook.

Alexey.

Mejri Mejri

Thank you for the reply sir :)