Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Google Fonts within Facebook Application

I'm having a not very fun time trying to use Google Fonts Api within a Facebook App.

It works on my application outside Facebook but when I'm inside the Facebook App the fonts do not work.

I'm including the font this way:

<link href='http://fonts.googleapis.com/css?family=Convergence|Satisfy' rel='stylesheet' type='text/css'/>

I will love to provide more information if needed. Thanks in advance for your time and help!

like image 340
Gilberto Ramos Avatar asked Mar 30 '26 18:03

Gilberto Ramos


2 Answers

You would need to change

<link href='http://fonts.googleapis.com/css?family=Convergence|Satisfy' rel='stylesheet' type='text/css'/>

to

<link href='//fonts.googleapis.com/css?family=Convergence|Satisfy' rel='stylesheet' type='text/css'/>

Facebook block external http resources.

like image 198
Vishwesh Shetty Avatar answered Apr 02 '26 14:04

Vishwesh Shetty


You can also just leave out the protocol-portion of the link:

<link href='//fonts.googleapis.com/css?family=Convergence|Satisfy' rel='stylesheet' type='text/css'/>
like image 28
Apeli Avatar answered Apr 02 '26 12:04

Apeli