@@ -19,29 +19,32 @@ Jamendo API OAuth 2
1919
2020apache vhost.conf
2121
22- <VirtualHost * :80>
22+ ```
23+ <VirtualHost *:80>
2324
2425 ServerName www.jamendoapioauth2.dev
2526 DocumentRoot /path/to/examples/JamendoApiOAuth2/public
26- ErrorLog " logs/jamendoapioauth2-error.log"
27- CustomLog " logs/jamendoapioauth2-access.log" combined
28- SetEnv APPLICATION_ENV " development"
27+ ErrorLog " logs/jamendoapioauth2-error.log"
28+ CustomLog " logs/jamendoapioauth2-access.log" combined
29+ SetEnv APPLICATION_ENV " development"
2930
30- < Directory /path/to/examples/JamendoApiOAuth2/public>
31+ < Directory /path/to/examples/JamendoApiOAuth2/public>
3132 DirectoryIndex index.php
3233 AllowOverride All
3334 Order allow,deny
3435 Allow from all
35- < /Directory>
36+ < /Directory>
3637
37- </VirtualHost >
38+ </VirtualHost>
39+ ```
3840
39413 . Update your hosts file:
4042
4143127.0.0.1 www.jamendoapioauth2.dev
4244
43454 . Create a Jamendi API account, then create a configuration file and add the values:
4446
47+ ```
4548; application/configs/jamendo_api.ini
4649
4750; to get a jamendo api account visit: https://devportal.jamendo.com/
@@ -56,6 +59,7 @@ oauthDialogUri = /oauth/authorize
5659accessTokenUri = /oauth/grant
5760stateSecret = a_secret_phrase
5861grantType = authorization_code
62+ ```
5963
6064Facebook Open Graph API OAuth 2
6165-------------------------------
@@ -66,29 +70,32 @@ Facebook Open Graph API OAuth 2
6670
6771apache vhost.conf
6872
69- <VirtualHost * :80>
73+ ```
74+ <VirtualHost *:80>
7075
7176 ServerName www.facebookopengraphoauth2.dev
7277 DocumentRoot /path/to/examples/FacebookOpenGraphOAuth2/public
73- ErrorLog " logs/facebookopengraphoauth2-error.log"
74- CustomLog " logs/facebookopengraphoauth2-access.log" combined
75- SetEnv APPLICATION_ENV " development"
78+ ErrorLog " logs/facebookopengraphoauth2-error.log"
79+ CustomLog " logs/facebookopengraphoauth2-access.log" combined
80+ SetEnv APPLICATION_ENV " development"
7681
77- < Directory /path/to/examples/FacebookOpenGraphOAuth2/public>
82+ < Directory /path/to/examples/FacebookOpenGraphOAuth2/public>
7883 DirectoryIndex index.php
7984 AllowOverride All
8085 Order allow,deny
8186 Allow from all
82- < /Directory>
87+ < /Directory>
8388
84- </VirtualHost >
89+ </VirtualHost>
90+ ```
8591
86923 . Update your hosts file:
8793
8894127.0.0.1 www.facebookopengraphoauth2.dev
8995
90964 . Create a Facebook API account, then create a configuration file and add the values:
9197
98+ ```
9299; application/configs/facebook_api.ini
93100
94101; facebook api configuration
@@ -99,4 +106,5 @@ clientSecret = 000000000000000000000000000000
99106callbackUrl = http://www.facebookopengraphoauth2.dev/facebookcallback
100107oauthDialogUri = /dialog/oauth
101108accessTokenUri = /oauth/access_token
102- stateSecret = a_secret_phrase
109+ stateSecret = a_secret_phrase
110+ ```
0 commit comments