reliefsupports.org-v1 icon indicating copy to clipboard operation
reliefsupports.org-v1 copied to clipboard

Automatically post on facebook page

Open sahanh opened this issue 7 years ago • 6 comments

I am proposing a feature to post needs on a facebook page automatically. I've implemented the initial code and submitting with the pull request. I've created a test page with a test app to test out the feature,

https://www.facebook.com/SL-Flood-Relief-137605090120516/

A long lived access token needs to be saved in .env . I can shared the fb credentials I am using over a private message. But would be ideal if a page with traction is linked @danishka

Hope it will become helpful

sahanh avatar May 28 '17 19:05 sahanh

The code looks alright, please rebase your branch seems to be outdated from the master. If possible add an image on how it actually looks GIF may be?

gayanhewa avatar May 29 '17 06:05 gayanhewa

This is how the post looks, the need creation flow remains the same without any changes. I've rebased the changes. How should we go about adding the page tokens?

sahanh avatar May 29 '17 07:05 sahanh

You can use the app tokens and we can add it to the .env template. Sample test keys can be committed to .env.sample but actual production app keys need to be handled with someone managing the deployments. Looks good, thanks for this 👍

gayanhewa avatar May 29 '17 14:05 gayanhewa

Would posting the number of the requester be a potential violation of privacy? Should it be a concern at this point or should we just focus on connecting the two parties?

chamilad avatar May 29 '17 17:05 chamilad

@sahanh appreciate if you can pic a high priority task available. https://github.com/reliefsupports/reliefsupports.org/wiki/Priority-Tasks-2017-05-31 Please do check if someone already working on a ticket before selecting.

danishka avatar May 31 '17 03:05 danishka

@gayanhewa Gayan, I've rebased the changes and updated .env.example with my test credentials. The sample page it's linking to is https://www.facebook.com/SL-Flood-Relief-137605090120516/ Also updated the readme to cover the steps to generate the page token.

sahanh avatar May 31 '17 06:05 sahanh