Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

How can i take a screenshot from my game and share it using facebook's unity SDK ?

Discussion in 'Android' started by Loaiq1107, May 4, 2016.

  1. Loaiq1107

    Loaiq1107

    Joined:
    Aug 25, 2014
    Posts:
    48
    Hey , I'm working on an app , that you have the ability to take a screenshot whenever you can (there's a button) , and share it to your facebook .

    Can someone tell me how to do it please?

    Thanks
     
  2. arunkarnann

    arunkarnann

    Joined:
    May 7, 2015
    Posts:
    6
  3. hameed-ullah-jan

    hameed-ullah-jan

    Joined:
    Sep 24, 2014
    Posts:
    7
    Tehmasip likes this.
  4. SyedUmair

    SyedUmair

    Joined:
    Sep 2, 2013
    Posts:
    42
  5. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,834
    I'm not sure why it's not possible through SDK but possible via intents.

    We have this feature in our free version where you can simply post a screenshot or a texture to facebook app. Along with facebook sharing we have options to share to many other social platforms as well.
     
  6. SyedUmair

    SyedUmair

    Joined:
    Sep 2, 2013
    Posts:
    42
    Hey, thanks for your comment. I would like to ask that whether you guys use official facebook unity sdk or have your own? Since, I am using that sdk for login + analytics (events) + audience network for ads (native + interstitial + banner + rewarded videos).
    Also, if you guys use your own. how much effort is required to make my code compatible with your plugin?
    Thanks,
     
  7. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,834
    We don’t use Facebook sdk internally.

    Ideally, its not required to use for basic sharing like these.

    Our plugin makes use of app communication mecanism which doesn’t need app to be registered on facebook for app id.

    Regarding integration, we have many devs using our plugin with other plugins successfully without any issues.

    Thanks,
    VB Team
     
  8. AlexanderOsipov

    AlexanderOsipov

    Joined:
    Feb 4, 2018
    Posts:
    6
    Hi! Tried to post screenshot to FB using version of asset you mentioned. But got no result.
    "Android stop working" or something like that appearing when I try to share screenshot or share picture. Sharing text message to FB works though.
    Unity 2018.3.6, Samsung Galaxy S7, Android 6.
     
  9. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,834
    Can you please share us your apk once to give a test?

    We haven’t get any reports about sharing issues. It would be great if you can share us more details either by sharing logcat or apk.

    Thanks,
    VB Team
     
  10. AlexanderOsipov

    AlexanderOsipov

    Joined:
    Feb 4, 2018
    Posts:
    6
  11. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,834
    @AlexanderOsipov We tested the apk and seems to work fine as expected. I tested on couple of devices to confirm.
    Please send us logcat log to see where it could be wrong. We are pretty sure it should work on all platforms without any problems.
    Lets continue on a 1-1 conversation to avoid discussing on this thread.