okazaki
Senior Member
- Apr 16, 2015
- 886
- 409
Note:
-Facebook update link information after 30 day that mean after 30 day the link information will be updated and the image will not be shown because the link image is redirected.
View attachment 78046
after you will find .htaccess in your file manager don't forget to check the box of hidden file
Login to cPanel.
Click on "File Manager" in the "Files" section.
Select "Document Root for:" and select the domain name you wish to access.
Make sure "Show Hidden Files (dotfiles)" is checked.
Click the "Go" button.
The File Manager will open in a new tab or window.
Look for the .htaccess file in the list of files. You may need to scroll to find this file.
Right click on the file and click on "Code Edit" on the menu. (Alternatively, you can click on the icon for the .htaccess file and then click on the "Code Editor" icon at the top of the page.)
A dialogue box may appear asking you about encoding. Just click on the "Edit" button to continue.
The editor will open in a new window.
Edit the file as needed.
Click on the "Save Changes" button in the upper right hand corner when done.
The changes have been saved. Test your website to make sure it has the desired effect. If not, correct the error or revert back to the previous version until your site works again.
Once complete, you can click "Close" to close the window.
https://my.bluehost.com/cgi/help/2139
Quick fix:
1. Remove the redirect
2. Paste the image link in the Facebook debugger tool: https://developers.facebook.com/tools/debug which will refresh Facebook's cache
3. Apply the redirect again
4. Repeat every time Facebook refreshes its cache
Is this somehow different than self-hosted .html solutions using open-graph tags?
For example setting the OG Tags on a page I host, and then posting the link on facebook will cause FB to crawl the url, gather the information, and render a clickable image with all the information I specify in the OG meta tags. This is useful in tons of scenarios including implementing a tags rotation system.
In this way I am not dependent on caching of the developers debug tool, and I can rotate any and all elements of the rotation including urls redirection, image posted, description and title tags, etc...
Anyway, your way is very easy for anyone with limited programming experience to easily accomplish these types of objectives, and obviously there are many usage scenarios where it could be implemented.
================
in 1st step...where to upload the image..in my website or anywhere. is it support on any free site like blogspot
<html xmlns="http://www.w3.org/1999/xhtml" lang="vi" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#"><head>
<title>[COLOR=#0000ff]title[/COLOR]</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="googlebot" content="noarchive"/>
<meta content="noindex, nofollow" name="robots"/>
<meta property="fb:app_id" content="1702636393315452"/>
<meta property="og:title" itemprop="headline" name="title" content="[COLOR=#0000ff]title[/COLOR]"/>
<meta property="og:site_name" content="legends"/>
<meta property="og:url" content="[COLOR=#0000ff]image url[/COLOR]"/>
<meta property="og:image" content="[COLOR=#0000ff]image url[/COLOR]"/>
<script type="text/javascript" language="javascript">window.location="[COLOR=#0000ff]web url[/COLOR]";</script>
</head>
<body>
</body>
</html>
You need to upload it in your website.
if you want to use the html method for external image, create a html file and add this code.
Code:<html xmlns="http://www.w3.org/1999/xhtml" lang="vi" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#"><head> <title>[COLOR=#0000ff]title[/COLOR]</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="googlebot" content="noarchive"/> <meta content="noindex, nofollow" name="robots"/> <meta property="fb:app_id" content="1702636393315452"/> <meta property="og:title" itemprop="headline" name="title" content="[COLOR=#0000ff]title[/COLOR]"/> <meta property="og:site_name" content="legends"/> <meta property="og:url" content="[COLOR=#0000ff]image url[/COLOR]"/> <meta property="og:image" content="[COLOR=#0000ff]image url[/COLOR]"/> <script type="text/javascript" language="javascript">window.location="[COLOR=#0000ff]web url[/COLOR]";</script> </head> <body> </body> </html>
change "web url" with you redirected url and "image url" to your image link.
now post your html file url to facebook.
It does work, but the images look strange compared to the "normal" ones, so they get less clicks.