| 1 |
<?php |
| 2 |
|
| 3 |
defined( 'ABSPATH' ) or die(); |
| 4 |
|
| 5 |
/** @var \Gianism\UI\SettingScreen $this */ |
| 6 |
/** @var \Gianism\Service\Facebook $instance */ |
| 7 |
|
| 8 |
?> |
| 9 |
<h3>Facebook</h3> |
| 10 |
|
| 11 |
<p class="description"><?php $this->e( 'First of all, Facebook account is required. If you don\'t have one, create it at <a href="https://www.facebook.com">facebook.com</a>' ); ?></p> |
| 12 |
|
| 13 |
<h4>Step1. <?php $this->e( 'Create App on Facebook developers' ); ?></h4> |
| 14 |
|
| 15 |
<p><?php $this->e( 'Gianism refers user\'s Facebook credential as Facebook app. Go to <a href="https://developers.facebook.com">Facebook developers</a> and sign up as developer. On registeration flow, you will have to enter mobile phone number or credit card number.' ); ?></p> |
| 16 |
|
| 17 |
<p><?php printf( $this->_( 'Authenticated as developer, go to <a href="https://developers.facebook.com/apps">Apps</a> and create new App. You can enter name as you like, but the same name as WordPress site name <code>%s</code> is recommended for usability.' ), get_bloginfo( 'name' ) ); ?></p> |
| 18 |
|
| 19 |
<p><?php $this->e( 'Though App credential is available for various usage(iOS app, Android app, Page tab, etc), minimum requirments are like below.' ); ?></p> |
| 20 |
|
| 21 |
<table class="gianism-example-table"> |
| 22 |
<tr> |
| 23 |
<th>Display Name</th> |
| 24 |
<td> |
| 25 |
<?php $this->e( 'App name. Blog name is recommended. User will see this name on authentication screen.' ); ?> |
| 26 |
<br/> |
| 27 |
<?php printf( $this->_( '<strong>e.g.</strong> <code>%s</code>' ), esc_html( get_bloginfo( 'name' ) ) ); ?> |
| 28 |
</td> |
| 29 |
</tr> |
| 30 |
<tr> |
| 31 |
<th>Namespace</th> |
| 32 |
<td> |
| 33 |
<?php $this->e( 'Unique string which identifies your app.' ); ?><br/> |
| 34 |
<?php printf( $this->_( '<strong>e.g.</strong> <code>%s</code>' ), esc_html( $_SERVER['HTTP_HOST'] ) ); ?> |
| 35 |
</td> |
| 36 |
</tr> |
| 37 |
<tr> |
| 38 |
<th><?php $this->e( 'Contact mail address' ); ?></th> |
| 39 |
<td> |
| 40 |
<?php $this->e( 'Contact mail address. It will be displayed on authentication screen on Facebook.' ); ?> |
| 41 |
<br/> |
| 42 |
<?php |
| 43 |
// translators: %s is email |
| 44 |
printf( __( '<strong>e.g.</strong> <code>%s</code>', 'wp-gianism' ), esc_html( $this->option->get( 'admin_email' ) ) ); |
| 45 |
?> |
| 46 |
</td> |
| 47 |
</tr> |
| 48 |
<tr> |
| 49 |
<th>App Domains</th> |
| 50 |
<td> |
| 51 |
<?php $this->e( 'Your domain.' ); ?><br/> |
| 52 |
<?php printf( $this->_( '<strong>e.g.</strong> <code>%s</code>' ), esc_html( $_SERVER['HTTP_HOST'] ) ); ?> |
| 53 |
</td> |
| 54 |
</tr> |
| 55 |
<tr> |
| 56 |
<th>Sandbox Mode</th> |
| 57 |
<td> |
| 58 |
<?php $this->e( 'On development environment or test flight, turn sandbox ON.' ); ?><br/> |
| 59 |
<?php printf( $this->_( '<strong>e.g.</strong> <code>%s</code>' ), esc_html__( 'OFF', 'wp-gianism' ) ); ?> |
| 60 |
</td> |
| 61 |
</tr> |
| 62 |
<tr> |
| 63 |
<th>Type</th> |
| 64 |
<td> |
| 65 |
<?php $this->e( 'You can activate several connection types, but below is required.' ); ?><br/> |
| 66 |
<code>Website with Facebook Login</code> |
| 67 |
</td> |
| 68 |
</tr> |
| 69 |
<tr> |
| 70 |
<th>Valid redirect URIs</th> |
| 71 |
<td> |
| 72 |
<?php $this->e( 'The URL where user will be redirected after authentication.' ); ?> |
| 73 |
<br/> |
| 74 |
<?php printf( $this->_( '<strong>e.g.</strong> <code>%s</code>' ), esc_url( home_url( "/{$instance->url_prefix}/", $this->option->is_ssl_required() ? 'https' : 'http' ) ) ); ?> |
| 75 |
</td> |
| 76 |
</tr> |
| 77 |
</table> |
| 78 |
|
| 79 |
<h4>Step2. <?php $this->e( 'Enter App ID and App secret' ); ?></h4> |
| 80 |
|
| 81 |
<p><?php printf( $this->_( 'Once you create Facebook App, App ID and App secret will be provided. Now you can enter it on <a href="%s">WordPress Admin screen</a>.' ), $this->setting_url() ); ?></p> |
| 82 |
|