Probably you are following
this link[
^].
You don't mention what error are you getting.But according to that code it seems to me,you don't understand what are you doing inside the code.A list of
FBPermissions are used there,but does all of them are valid in your profile? I mean,does your Facebook profile has all values of those permissions? If you get
Bad Request error, then you need to know bad request usually occurs when token is invalid or permissions are not there.And a suggestion for you,it would be better if you post your problems on that blog who authored that.