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
1
Question by Ashky · Oct 15, 2015 at 01:41 PM · androidfacebookshare

Facebook Share missing title and description

Hello Unity Community!

I'm trying to create a facebook share option for my android game. Here's some code:

     public void ShareToFacebook(){
         FB.ShareLink(
             new Uri("la la la url here"),
             "My High Score",
             "Think you can beat my "+_score.ToString()+" score?",
             callback: ShareCallback
             );
     }
     private void ShareCallback (IShareResult result) {
         if (result.Cancelled || !String.IsNullOrEmpty(result.Error)) {
             Debug.Log("ShareLink Error: "+result.Error);
         } else if (!String.IsNullOrEmpty(result.PostId)) {
             // Print post identifier of the shared content
             Debug.Log(result.PostId);
         } else {
             // Share succeeded without postID
             Debug.Log("ShareLink success!");
         }
     }

However, the share that shows up contains only the link, no title or description show up. Any ideas why? Note that I only did the FbInit, and not the login as well. They said it's not required.

Thanks for your time!

Comment
Add comment · Show 3
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 Salazar · Oct 19, 2015 at 01:16 PM 0
Share

Same here.

avatar image Ashky Salazar · Oct 20, 2015 at 09:28 AM 0
Share

Are you sharing a google play or ios app store link? Apparently that's the problem, at least for me. Sharing a google play or ios app store link will cause facebook to automatically ignore title and description, even though it's not mentioned anywhere in the documentation for the unity sdk. I've tried using the older method called FB.FeedShare(). Sadly, this one ignores title, description and caption as well. The only solution here is to get your app on the facebook app center. But as a fair warning, you should know that it involves implementing FB login, having a privacy policy for your app and many other things.

avatar image willisuh · Mar 09, 2016 at 01:11 PM 0
Share

how did you even get that to compile? im stuck with the error "the type or namespace name 'uri' could not be found'"

also !String.IsNullOrEmpty is also giving errors

1 Reply

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

Answer by Salazar · Oct 22, 2015 at 08:28 PM

Hello Ashky,

Yes they didnt mention it in sdk. If you take a closer look to their tutorial game "Friend Smasher", they couldnt share how many friends smashed! (https://developers.facebook.com/docs/games/unity/unity-tutorial)

Check the Brag and NewsFeed part of tutorial.

And yes no appstore links can be used and also you can not use facebook app center link too. I tried it too.

Here is the facebook support answer for it ; "The URL, you are trying to scrape / modify the title & description for is a facebook.com URL: https://www.facebook.com/games/crowalpha/. you cannot change these details for facebook.com URLs."

Here is my bug report ticket : https://developers.facebook.com/bugs/438799922973430

I used my games blog post link.

Hope it helps for your situation until you make your own plugin =)

Regards,

Comment
Add comment · Show 1 · 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 SarthakHShah7 · Apr 25, 2017 at 10:00 AM 0
Share

Hey @Salazar I have implemented Facebook integration in the unity sample game and I can share on Facebook using fb.sharelink and fb.feedshare successfully. But now I created a new Facebook application and added android platform in it also. but now when I integrated this new Facebook in real game project it shares but tile & description is missing and ins$$anonymous$$d it setting title from provided link as content URL. I want title and description to be dynamic and it is successfully going on sample project. but the same function and same methods trying on this newly created Facebook application is not allowing me to achieve sharing.

I have checked all settings of both of these apps and they are same in developers.facebook.com

Can you help me on this ?

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

39 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 avatar image avatar image avatar image avatar image

Related Questions

How to make prime31 SocialNetworking plugin demo work? 0 Answers

Unity Android - Image share to facebook fails 1 Answer

Share Screenshot Image to Facebook with Facebook SDK 0 Answers

Facebook app review for screenshot share 0 Answers

integrate facebook with android 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