Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
59 user(s) are online (31 user(s) are browsing Forums)

Members: 1
Guests: 58

eastone, more...

Headlines

 
  Register To Post

OG:Tags for OS4Depot items
Just popping in
Just popping in


See User information
Hi,
Not sure which user is Björn Hagström, but have you considered using OG tags on each of the file pages within OS4Depot.

This way, each time someone shares a link to a file on OS4depot, social media sites will obtain the correct title/description/image for each upload.

Main reason for this, is that I'm looking into making a Facebook/twitter notifier for new OS4deposits.




Go to top
Re: OG:Tags for OS4Depot items
Supreme Council
Supreme Council


See User information
Tell me how it works (technically) and I might consider it.

Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
Go to top
Re: OG:Tags for OS4Depot items
Just popping in
Just popping in


See User information
Very similar to meta tags, eg title / description etc, its just a way to make social platforms read the preferred data rather than guess it.

Here would an example

http://os4depot.net/?function=showfil ... y/benchmark/boingcube.lha

<meta property="og:url" content="http://os4depot.net/?function=showfil ... hmark/boingcube.lha" />
<meta property="og:type" content="article" />
<meta property="og:title" content="BoingCube" />
<meta property="og:description" content="A bouncing rotating boing cube" />
<meta property="og:image" content="http://os4depot.net/filedata/snapshot/9645_1_snap.jpg" />
<meta property="og:image" content="http://os4depot.net/filedata/snapshot/9645_2_snap.jpg" />

The og:url could be a canonical url if theres one avaiable

Depending on how the website is built, these would be simple database fields of the uploaded file, some like the image can be mocked up just by the upload file ID even it the image doesn't exist, so by default it would pull the first image on the page.

The description tag could hold more information like filesize, platform, date added, author etc

Twitter has there own set of similar tags

https://dev.twitter.com/cards/markup



Go to top
Re: OG:Tags for OS4Depot items
Home away from home
Home away from home


See User information
@theamigaone

fixed database-org.com..

Thanks.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: OG:Tags for OS4Depot items
Just popping in
Just popping in


See User information
@LiveForIt

Yep, just like that.

Go to top
Re: OG:Tags for OS4Depot items
Supreme Council
Supreme Council


See User information
Okey done, for readme pages. Let me know if there are any problems.

Example:

http://os4depot.net/index.php?functio ... me/driving/amigaracer.lha

Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
Go to top
Re: OG:Tags for OS4Depot items
Supreme Council
Supreme Council


See User information
Found this page:

http://www.pontikis.net/blog/auto_post_on_twitter_with_php

If I get really bored some day I might automate a tweet every time a file is published.

Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project