Create Overlay for Profile Image on FB

TL DR: Find bold text to view questions without context.

When something bad (or good, but it's a cruel world) happens, FB has a function to change your profile picture - when the US legalized homosexual marriage, you could have a rainbow flag over your picture, when SW7 came out, you could would add a lightsaber etc.

I wanted to do something similar for a social campaign and started writing an application for this. I figured it should be possible, since in the case of Star Wars, it seemed to be run by a private company (Disney), not FB itself.

My plan was as follows:

  • download the current pic user profile (done, although I can’t get a good quality, in any case, this will fix later)
  • add banner in memory (done)
  • upload this photo with banner added (done)
  • redirect the user to the photo from (3) using makeprofile = 1 as suggested here to make this user profile image
  • profit

Unfortunately, the answer given in (4) does not seem to work anymore.

My question is: is this still possible? If so, how? If not, do I have any alternatives?

I also tried to figure out how to link the "Make profile profile" link in the webview. It looks like this:

https://www.facebook.com/photo.php?fbid=<<picture id>&set=a.<<similiar, but not the same as picture id>>.<<not a clue>>.<<seems to be profile id>>&type=3&makeprofile=1&profile_id=<<profile id, duh>>&pp_source=photo_view 

If someone knows what the following parts mean, my problem will probably be solved :

  • <<similiar, but not the same as picture id>>
  • <<not a clue>>
  • <<seems to be profile id>>

I also tried to find out the ProfilePictureSource , but the abstraction itself is not described anywhere (or I could not find it) and judging by the necessary permissions, it does not seem like what I need (for which I need any pages, groups, a mailbox or business permissions when I only want to update pic profile?). If so, and I just lost it, tell me how to use it.

Another way to answer this question is to propose an alternative way to have a banner over the profile image.

For recording, I use Python with facebook-sdk shell, but only for rapid prototyping - I could also use Java with Spring Social, DLang with manual HTTP calls, whatever - the technology is not a problem, I need a common path here.

+6
source share
1 answer

Can I create a Facebook application? It seems that this would be possible with their "set of expressions for the profile."

https://developers.facebook.com/docs/profile-expression-kit

0
source

Source: https://habr.com/ru/post/1013873/


All Articles