Connect to facebook and working with api

前端 未结 2 1120
猫巷女王i
猫巷女王i 2021-01-28 15:20

Is there any good tutorial how to make simple console facebook appplication which connect to facebook and get list of friends, user photos, status or something. I look at facebo

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-28 16:13

    Check out the tutorial and examples here.

    It should have all the functions that you need and is fairly easy to implement. Trust me, you'll spend hours going elsewhere to figure it out.

    As for custom login windows I recommend that you don't do that. People trust Facebook and don't want to give you their personal info, that's actually a part of your agreement with Facebook.

    What you can do however is ask for offline access permission and store the token for future use. This way if you know who the user is on your end then you can make calls to the API without having to log them into Facebook again.

提交回复
热议问题