Facebook Messenger sending metadata (Android)

后端 未结 2 1271
生来不讨喜
生来不讨喜 2021-01-15 20:05

I\'m following this guide to create an app which sends an image to Facebook messenger.

String mimeType = "image/png";
Uri contentUri = Uri.parse(&qu         


        
相关标签:
2条回答
  • 2021-01-15 20:23

    Yes, I can confirm that using a different image everytime does fix this issue.

    0 讨论(0)
  • 2021-01-15 20:26

    Ok so here's the workaround for those having the same problem.

    If an app posts a same image to Facebook Messenger multiple times, the Messenger treats all but the first image as duplicates and doesn't attach the metadata. (There's an eventual timeout but can't care less to figure out the exact duration)

    My workaround is as follows: Every time your app posts to the messenger, make it place a random pixel in a random location to make sure the image's signature changes. I haven't tried but I think changing the alpha value of a pixel will work better in terms of making it less conspicuous to the users.

    0 讨论(0)
提交回复
热议问题