Skip to content

Commit bae878f

Browse files
committed
feat: update social media setup with revised Open Graph title, added Facebook Messenger testing section, and enhanced troubleshooting guidelines
1 parent 7f6f1b3 commit bae878f

File tree

1 file changed

+58
-7
lines changed

1 file changed

+58
-7
lines changed

SOCIAL_MEDIA_SETUP.md

Lines changed: 58 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This document explains how the social media sharing (Open Graph) is configured f
55
## What's Been Set Up
66

77
### 1. Open Graph Meta Tags
8-
- **Title**: "Boss Hudsawat - Software Engineer & Tech Speaker"
8+
- **Title**: "Boss Hudsawat - Full Stack Developer & Tech Speaker"
99
- **Description**: Professional description of your portfolio
1010
- **Image**: Generated 1200x630 image optimized for social sharing
1111
- **URL**: https://bosshudsawat.com
@@ -33,20 +33,55 @@ This document explains how the social media sharing (Open Graph) is configured f
3333
3. Click "Debug" to see how it will appear on Facebook
3434
4. Use "Scrape Again" to refresh the cache
3535

36-
### 2. Twitter Card Validator
36+
### 2. Facebook Messenger Testing
37+
1. **Clear Facebook Cache**: Use the Facebook Sharing Debugger and click "Scrape Again"
38+
2. **Test in Messenger**: Send your link to yourself first
39+
3. **Wait for Cache**: Facebook caches previews for 24-48 hours
40+
4. **Check Image URL**: Ensure `/opengraph-image` is accessible
41+
42+
### 3. Twitter Card Validator
3743
1. Go to https://cards-dev.twitter.com/validator
3844
2. Enter your website URL
3945
3. See how it will appear on Twitter
4046

41-
### 3. LinkedIn Post Inspector
47+
### 4. LinkedIn Post Inspector
4248
1. Go to https://www.linkedin.com/post-inspector/
4349
2. Enter your website URL
4450
3. See how it will appear on LinkedIn
4551

46-
### 4. WhatsApp/Telegram
52+
### 5. WhatsApp/Telegram
4753
- Share your website link in these apps
4854
- The preview should show your custom image and description
4955

56+
## Facebook Messenger Troubleshooting
57+
58+
### If Messenger doesn't show preview:
59+
60+
1. **Check Facebook Debugger First**:
61+
- Go to https://developers.facebook.com/tools/debug/
62+
- Enter your URL and check for errors
63+
- Look for "Warnings" or "Errors" sections
64+
65+
2. **Common Issues**:
66+
- **Image not loading**: Check if `/opengraph-image` is accessible
67+
- **Wrong title/description**: Verify meta tags are correct
68+
- **Cached old version**: Use "Scrape Again" in debugger
69+
70+
3. **Force Refresh Cache**:
71+
- Use Facebook Sharing Debugger
72+
- Click "Scrape Again" multiple times
73+
- Wait 24-48 hours for cache to clear
74+
75+
4. **Check Image Requirements**:
76+
- Must be 1200x630 pixels
77+
- Must be accessible via HTTPS
78+
- Must be less than 8MB
79+
- Must be PNG, JPG, or GIF format
80+
81+
5. **Test Image URL Directly**:
82+
- Visit `https://bosshudsawat.com/opengraph-image` in browser
83+
- Should show the generated image
84+
5085
## Customization Options
5186

5287
### 1. Update the Generated Images
@@ -75,29 +110,45 @@ Update the structured data in `src/app/layout.tsx`:
75110
1. Add your Google verification code in `src/app/layout.tsx`
76111
2. Replace `"your-google-verification-code"` with your actual code
77112

113+
### 5. Facebook App ID (Optional)
114+
If you have a Facebook App:
115+
1. Add your Facebook App ID in `src/app/layout.tsx`
116+
2. Replace the empty `"fb:app_id"` value
117+
78118
## Important Notes
79119

80120
1. **Image Dimensions**: 1200x630 pixels is the optimal size for most social platforms
81-
2. **Cache**: Social platforms cache previews, so changes may take time to appear
121+
2. **Cache**: Social platforms cache previews for 24-48 hours
82122
3. **Testing**: Always test on the live website, not localhost
83123
4. **Performance**: Generated images are created on-demand and cached
124+
5. **HTTPS Required**: All URLs must use HTTPS for social media sharing
84125

85126
## Troubleshooting
86127

87128
### If images don't appear:
88129
1. Check that the image files exist
89-
2. Verify the URLs are correct
130+
2. Verify the URLs are correct and use HTTPS
90131
3. Clear social media platform caches
91132
4. Check browser console for errors
133+
5. Test image URL directly in browser
92134

93135
### If meta tags aren't working:
94136
1. Verify the website is accessible
95137
2. Check that Next.js is generating the meta tags correctly
96138
3. Use browser dev tools to inspect the `<head>` section
139+
4. Validate with Facebook Sharing Debugger
140+
141+
### If Messenger still doesn't work:
142+
1. Check Facebook Sharing Debugger for errors
143+
2. Ensure all URLs use absolute paths with HTTPS
144+
3. Wait 24-48 hours for cache to clear
145+
4. Test with a different Facebook account
146+
5. Check if your domain is blocked by Facebook
97147

98148
## Next Steps
99149

100150
1. Deploy your website
101151
2. Test with the social media debuggers
102152
3. Share your link on various platforms
103-
4. Monitor how it appears and adjust as needed
153+
4. Monitor how it appears and adjust as needed
154+
5. If issues persist, check Facebook's developer documentation

0 commit comments

Comments
 (0)