Skip to content

Snehal auto poster for facebook#3270

Closed
SnelPatare wants to merge 25 commits into
developmentfrom
Snehal_auto_poster_facebook
Closed

Snehal auto poster for facebook#3270
SnelPatare wants to merge 25 commits into
developmentfrom
Snehal_auto_poster_facebook

Conversation

@SnelPatare
Copy link
Copy Markdown
Contributor

@SnelPatare SnelPatare commented Mar 13, 2025

Description

(PRIORITY HIGH) Jae: Create appropriate auto-poster for Facebook + Facebook Groups

Related PRS (if any):

This frontend PR is related to the OneCommunityGlobal/HGNRest#1268 backend PR.
To test this Frontend PR you need to checkout the OneCommunityGlobal/HGNRest#1268 backend PR.

Main changes explained:

  • Updated Announcements/Announcements.css
  • Updated Announcements/index.jsx
  • Updated src/utils/URL.js

How to test:

Initial Setup to test PR:

  1. Prepare Facebook account:
  2. Contact me (Snehal Patare) on WhatsApp or slack for admin access for One Community (testing page) Facebook page and Test access for the developer.facebook app.
  3. Accept the invitation on facebook.com -> pages on left panel -> Invites
  4. Refresh the facebook page. Click on your profile dp on upper right side. You should see the One Community (testing page) page in dropdown. (You will be having admin access)
  5. Accept the request on the developer.facebook (https://developers.facebook.com/ ) application. The invitation will be shown on upper-right corner of the page.

Test in HGN application
7. check into current branch
8. do npm install and to run this PR locally using "HTTPS=true nom run start:local"
9. Clear site data/cache
10. log as Owner user
11. go to taskbar→ Other links -> Send Emails
12. Enter text in Weekly Progress Editor
13. At the end of the page. Select Login to Facebook button.
14. This will open the Facebook window for authorization. Enter Facebook Email and Password. Select Continue buttons. Lastly it will revert back to HGN application
15. HGN application (https://localhost:3000/announcements). Scroll down at the end of the page. Select Post to Facebook button.
16. This should post the test written in Weekly Progress Editor on One Community(Temporary) Facebook page.
17. Login to Facebook.com. Check for Facebook post on Facebook page.
18. Please test the application by adding text and images in Weekly Progress Editor.

Screenshots or videos of changes:

video.mp4

Note:

Please contact me if you need help with the setup.

@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 13, 2025

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit f6dffc1
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/682831cd7671ed0008ad6487
😎 Deploy Preview https://deploy-preview-3270--highestgoodnetwork-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@sidhu47h sidhu47h self-requested a review March 15, 2025 20:45
sidhu47h
sidhu47h previously approved these changes Mar 19, 2025
Copy link
Copy Markdown

@sidhu47h sidhu47h left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested the changes and fired a request to connect to the facebook api. The changes are working as expected. The text sent from the HGN App showed up as a post on the facebook page.
Screenshot 2025-03-19 at 2 45 04 PM
Screenshot 2025-03-19 at 2 44 50 PM (2)
Screenshot 2025-03-19 at 2 44 44 PM

vasavi-139
vasavi-139 previously approved these changes Mar 23, 2025
Copy link
Copy Markdown
Contributor

@vasavi-139 vasavi-139 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’ve created the auto-poster for Facebook and Facebook Groups. I’ve tested it by following all the steps, including logging in, posting through the Weekly Progress Editor, and verifying the post on the One Community Facebook page. I’ve verified everything, and it works as expected.
Screenshot 2025-03-23 131637
Screenshot 2025-03-23 132122
Screenshot 2025-03-23 132137
Screenshot 2025-03-23 132153

@one-community one-community added the High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible label Mar 24, 2025
@SnelPatare SnelPatare dismissed stale reviews from vasavi-139 and sidhu47h via 474b8da March 27, 2025 00:21
@SnelPatare SnelPatare force-pushed the Snehal_auto_poster_facebook branch from 474b8da to f737a00 Compare March 27, 2025 00:29
@SnelPatare SnelPatare force-pushed the Snehal_auto_poster_facebook branch from d240e1e to 9b75567 Compare May 17, 2025 06:04
Copy link
Copy Markdown

@rohanrastogi311 rohanrastogi311 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Snehal,

Launch Error due to incorrect node version. 14 instead of 20.

Image

@one-community
Copy link
Copy Markdown
Member

Replaced with new PR set: #4714 and OneCommunityGlobal/HGNRest#2005

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants