Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by RMihai · Feb 12, 2016 at 01:31 AM · facebookurl

Open facebook sharing link in the facebook app.

Ok So I have a link like this:

 Application.OpenURL(fbURL +
     "?app_id=" + appId
     + "&href=" + WWW.EscapeURL(link)
     + "&name=" + WWW.EscapeURL(name)
     + "&caption=" + WWW.EscapeURL(caption)
     + "&description=" + WWW.EscapeURL(description)
     + "&picture=" + WWW.EscapeURL(picture)
     + "&redirect_uri=" + WWW.EscapeURL(redirect));


which allows users to share something on facebook based on those parameters(name,link,caption,etc which are all strings). fbURL is just "http://www.facebook.com/dialog/share", and appId is the Facebook id of my app. Now I want to open this type of link in the Facebook app for android if it is installed on the device, else I want to open this in a browser. I already know how to open it in the default browser but I can't open it in the native facebook app. I've already tryied

 Application.OpenURL("fb://"+fbURL +
         "?app_id=" + appId
         + "&href=" + WWW.EscapeURL(link)
         + "&name=" + WWW.EscapeURL(name)
         + "&caption=" + WWW.EscapeURL(caption)
         + "&description=" + WWW.EscapeURL(description)
         + "&picture=" + WWW.EscapeURL(picture)
         + "&redirect_uri=" + WWW.EscapeURL(redirect));



Can you help me please? Thanks.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by Guhanesh · Feb 13, 2016 at 06:41 AM

Download and use Use FB Unity SDK from here and

                 FB.ShareLink(
                 new Uri("https://developers.facebook.com/"),
                 "Link Share",
                 "Look I'm sharing a link",
                 new Uri("http://i.imgur.com/j4M7vCO.jpg"),
                 callback: this.HandleResult);

will share in FB app.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image RMihai · Feb 13, 2016 at 07:32 PM 0
Share

Wow. Thanks it worked. I was trying with the fb sdk too, but ins$$anonymous$$d of FB.ShareLink I was using FB.FeedShare which was full of errors for me. Anyways do you know how to do this for Google+ and Twitter? Thanks!

avatar image Guhanesh RMihai · Feb 15, 2016 at 08:03 AM 0
Share

I dont think unity plugins are available for Google+ and Twitter.But I use native android share feature to share with other social sites .You can find it here

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

35 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Open facebook app instead safari / iOS - C# 1 Answer

how i can share my screenshot in base64 data to facebook using Unity ?? 0 Answers

Unity-Facebook App - Can't open URL or a Facebook Page 0 Answers

unishare help!!!! 1 Answer

Problem with Facebook URL. 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges