私のWebページの訪問者がどの都市から来ているのかを次のように知りたいです。
1. If the visitor has a public Facebook profile,
then return her Facebook location.
2. Otherwise, return her location based on the IP address.
私はその方法を知っています(2)。しかし、(1)を行う方法はありますか?
私のWebページの訪問者がどの都市から来ているのかを次のように知りたいです。
1. If the visitor has a public Facebook profile,
then return her Facebook location.
2. Otherwise, return her location based on the IP address.
私はその方法を知っています(2)。しかし、(1)を行う方法はありますか?
彼らにあなたのアプリケーションを承認させることなく、いいえ。
それ以外の場合、APIでの基本的な呼び出し/USER_ID
はロケールを返します
user.locationのGraphAPIに質問するだけです– https://developers.facebook.com/docs/reference/api/user/
MaxMind APIを使用して、ユーザーのIPhttp ://www.maxmind.com/app/ip-locationに基づいてユーザーの場所を取得できます。
また、プロファイルからユーザーの場所を取得するには、GraphAPIhttps ://developers.facebook.com/docs/reference/api/user/を使用できます。