Skip to content

Commit cc5fdb1

Browse files
author
Sudhir Nimavat
committed
Modified readme - Making 1.0 Release
1 parent 8f6b4ef commit cc5fdb1

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,21 @@ Following configuration options are available.
1919
All of the config options are optional.
2020
See [facebook documentation](https://developers.facebook.com/docs/reference/plugins/comments/) for details about possible values.
2121

22-
## Integrating facebook comments into your application.
22+
## Usage
2323
Follow this steps for integration
2424

25-
*Step 1*
25+
**Step 1:**
2626
Put `<fb:initFbCommentsJS appId="your app id" />` right after opening `<body>` tag. It will initialize facebook comments js sdk.
2727
appId parameter is optional and if not specified it will be picked up from config.
2828

29-
*step 2*
30-
put `<fb:comments width="" colorscheme="", num_posts="" mobile="" href="http://example.com"/>` anywhere in the page where you want comments to be displayed.
29+
**step 2:**
30+
put `<fb:comments width="" colorscheme="", num_posts="" mobile="" href="http://example.com"/>` in the page where you want comments to be displayed.
3131
Again all of the parameters are optional and if not specified they will be picked up from config.
3232

3333
#### Configuring data-href url
3434
-----
35-
href parameter is used identify the page for comments. It can directly specified in `<fb:comments>` tag, or it can be configured as a Closure in config.
36-
When no href parameter is passed to `<fb:comments>` tag, it will check if Closure is configured in config, if so, the closure will be called and return value will be used as href.
35+
**href** parameter is used identify the page for comments. It can be directly specified in `<fb:comments>` tag, or it can be configured as a Closure in config.
36+
When no *href* parameter is passed to `<fb:comments>` tag, it will check if Closure is configured, if so, the closure will be called and return value will be used as href.
3737

3838
*Example*
3939
```
@@ -49,4 +49,9 @@ And now in your gsp file
4949
5050
```
5151

52-
When href is not passed as parameter to `<fb:comments />` or not configured in Config.groovy, current request url will be used as href.
52+
When *href* is not passed as parameter to `<fb:comments />` or not configured in Config.groovy, current request url will be used as href.
53+
54+
55+
**Note:**
56+
Facebook comments are associated with a url, You will loose comments if you change *href* attribute of a comment box after some comments has been posted.
57+
You can use `grails.plugin.facebookcomments.href` Closure configuration option to generate whatever url you want based on the bean passed.

0 commit comments

Comments
 (0)