简体   繁体   中英

Facebook share dialog android return error

I want to share a simple link from my android app.

I followed the getting started guide from Facebook and all seem okay in my app since I can open the share dialog.

  • I imported FacebookSDK project and linked library
  • I set my appproperly (package/class name and dev hash keys)
  • My manifest has right permissions and meta-data

Additional infos :

  • I use a real device for debug
  • I run a test app as admin
  • I'm running a simple share code sample from an activity

I had troubles to generate hash keys but that post helped me. I got an error saying XXX key (different from the one I generated) doesn't match.

Then I tried the method explained here (at the end) to log another key.

Since now, I just get a toast saying " Something went wrong. Please try again ."

What am I doing wrong ?

So I solved my problem thanks to another post . The problem is I was trying to generate a key outside my main (first) class.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM