PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, February 21, 2022

[FIXED] Like a photo on behalf of facebook app user

 February 21, 2022     facebook, facebook-graph-api, facebook-javascript-sdk, facebook-like, facebook-php-sdk     No comments   

Issue

I am making an app where I am posting a photo as a result. I want to like the photo on behalf of the app user, without the user actually clicking the like link on the photo.
My aim behind this is that the like will get posted on the user's profile and get noticed by their friends.
Is this possible?

I am using php sdk but can work with JS sdk as well.

Thanks in advance


Solution

Taken from the facebook photo api documentation :

You can like a photo by issuing a HTTP POST request to PHOTO_ID/likes connection with the publish_stream permission. No parameters necessary.

All you have to do is retrieve an access token for the page. You can learn how to do that here under the section App Login



Answered By - Lix
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing