• Token

    • token is used to access page posts and comments
    • the token's validity is 1 hour and it can be extented to 2 months
    • example of token:== EAAHXUIbIbzEBAIOfY3IXyRqZCuXgNXp5dXZBXh3Rc3vI7JIhn9kV2YY47UMNsMbMmf9MRHrNwFiuDGcJ7Ne6hidgKgOoCgNswVgE0xTgfhk0mwn4SGS8mPUup1 hclF92MZAQbEZA7sQXpssaJs6mcZBWkTQPVvkAAOfQrooyb3QOLaXfPs4wHi06xUxxxxxxxxx



  • To view all post on page

    • get method used
    • to view all posts on page
    • parameter used :-fields=posts
    • to view all post using facebook api by using get method


  • To view a comment

    • method used get
    • to view comments on posts
    • the comments time and comment id is generated



    • user permission

    • to get permission for access details
    • different type of permission to give access to page
    • the api has to take some user or page permission to fetch or update data on page



    • view all comments posts

    • to get all comments on post
    • to get all likes on post
    • the post id is one but comment id is different
    • every comment has its unique comment id
    • fields=posts{comments,likes,reactions}
    • to check all comments ,likes,reactions,comment-reply given on single post



    • reply comment using graph api

    • method used = post
    • this is used to update comment here the comment id used to identify comment

    • reply-comment is message type and message is mentioned in field

    • there are two fields

    • one field is for type of data posted (for ex :- link for link,message for string type message)

    • second for the data (in link:-url to pe written,in message:- message is to be writtens)



    • webhooks

    • webhooks call back url requried and authentication token

    • the webhooks is used get notification of every update

    • required:- server callback url, access token