AllenEllis / EverySingleMonth

Meme Generator for Every Single Month
https://everysinglemonth.org
MIT License
8 stars 6 forks source link

Add FB Share Button #26

Closed kenjim83 closed 4 years ago

kenjim83 commented 4 years ago

Before deploying will have to set these configs $nodeExecPath $isPushEnabled $fbAppId

Background: To set the preview image for a FB share, the image has to already be available and set on a page in the og:image meta tag for FB to scrape. For this to work with all generated PNGs we have to find a way to set this in the share URL so that the uniquely created infographic shows in the preview. (Can discuss w/ Allen)

For now, the FB share button just uses the same header image for the city.

Changes: -Adds FB Share button to share current page after generating the infographic -Adds config option to turn off sending Push notifications -Adds config option to set node executable path -Adds config option for Facebook App Id which is required to use their JS SDK -Allow setting some global constants in utils/constants.php. Just setting main slash image for now.

kenjim83 commented 4 years ago

Fb share button

Screen Shot 2020-05-10 at 8 58 17 AM