@@ -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
33333 . Click "Debug" to see how it will appear on Facebook
34344 . 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
37431 . Go to https://cards-dev.twitter.com/validator
38442 . Enter your website URL
39453 . See how it will appear on Twitter
4046
41- ### 3 . LinkedIn Post Inspector
47+ ### 4 . LinkedIn Post Inspector
42481 . Go to https://www.linkedin.com/post-inspector/
43492 . Enter your website URL
44503 . 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`:
751101 . Add your Google verification code in ` src/app/layout.tsx `
761112 . 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
801201 . ** 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
821223 . ** Testing** : Always test on the live website, not localhost
831234 . ** 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:
881291 . Check that the image files exist
89- 2 . Verify the URLs are correct
130+ 2 . Verify the URLs are correct and use HTTPS
901313 . Clear social media platform caches
911324 . Check browser console for errors
133+ 5 . Test image URL directly in browser
92134
93135### If meta tags aren't working:
941361 . Verify the website is accessible
951372 . Check that Next.js is generating the meta tags correctly
961383 . 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
1001501 . Deploy your website
1011512 . Test with the social media debuggers
1021523 . 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