简体   繁体   中英

Multiple user facebook sharer

I created an angular app that allows users to take pictures from a touchscreen inside a shop.

Those users must be able to share these pictures on facebook. The problem is that once the first one has been logged-in to facebook via the sharer, it stores a session cookie and the next person who want to share his photo will be logged as the previous one.

I was thinking of something like : Share the photo button -> Ask facebook email & password credentials -> photo is shared on user wall -> user is automatically disconnected

Is there a way around this problem ?

Use this: https://developers.facebook.com/docs/facebook-login/for-devices

Don´t just present the default login process, it will come with those session cookie issues and other problems (2 step verification, for example).

Also, NEVER EVER ask users for their credentials, especially their password. That´s not how Facebook Login works, and people hopefully don´t do that.

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