Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想同时从一个 Android 应用发布到 2 个 Facebook 个人资料。据我所知,Facebook OAuth 2 不再支持离线访问,对吧?如果我需要登录才能获得一个,如何获得 2 个不同配置文件的访问令牌?
发布到用户的墙上需要该用户的有效访问令牌。因此,您可以在用户登录时保存用户的扩展令牌。您可以通过拨打电话将短期令牌替换为长期令牌 -
GET /oauth/access_token? grant_type=fb_exchange_token& client_id={app-id}& client_secret={app-secret}& fb_exchange_token={short-lived-token}
参考
客户端(蟒蛇):
theta = math.sin(23/3) / 300 y = math.cos(23/11) / 20 data=struct.pack('<ff',theta,y) # pack with two float s.sendto(data, (ip, 50000))
服