1. Permission to apply
to apply First "User_likes" this permission, do not apply for only developers can use, other users can not praise.
Then select
Click
A list of permissions is then available, which you can then use in the login by selecting the required permission request.
If an error message appears
then click App Details , fill out App The information can be
Here is the URL to fill in the application when setting up an ad
and then go back Status & Review , click ADD Notes Add descriptive text
The following must be written in detail, write clear reasons, or it is easy to apply not to pass, must be written in English:
please explain how you use User_likes elevate the experience in the application.
How do you test User_likes ? Please provide detailed instructions, and our review team can reproduce this permission.
examples Show "User_likes" Properties:
1. Login with Facebook to the "Coco and Etoile Dating App."
2.Accept the "user_likes" permission.
3.Access your "Coco and Etoile Dating App" Profile:
Click the three lines in the upper left-hand corner.
Click the "Profile" tab.
4.Within the profile view, scroll the Interests section.
These interests display the Facebook "User_likes" property.
attached: detailed documentation is presented in Docs of the Appreview in
Upload your apk
Choose
Select File Upload
for your app Add 4 Zhang:
Accept
submit complete, wait 7 Business days, and you can use the login
I am in the application 9 an hour later it was reviewed. (This feature is not allowed)
2. Code part
2.1. Open Res/layout/activity_main.xml, add a Likeview control to the layout
<com.facebook.widget.likeview android:id= "@+id/like_view" android:layout_width= "Wrap_content " android:layout_height= "Wrap_content" android:layout_margintop= "30DP" android:gravity= "center" Android:text= "like" android:textstyle= "bold" android:visibility= "invisible"/>
2.2. Initialize and set related objects
Private Likeview Likeview;
Likeview = (Likeview) View.findviewbyid (R.id.like_view);
Likeview.setobjectid ("https://www.facebook.com/kam520c");
among them, Setobjectid The address is the home page created when the ad was created, and details see the Create AD step.
2.3, set the login Likeview control can be visible
Likes before:
After liking:
"FACEBOOKSDK study notes" Facebook likes (requires "user_likes" permission)