How can I get node url in rules for facebook auto post Event is: After saving new content




When I add new blog type content it shows error. I know this error is occurred for


  Set a data value
  Parameter: Data: [entity-created:field..., Value: [node:url]


1. I know the problem is occurred  Value: [node:url]
2. But I need the url of the created node
3. how can I get this url
Make sure when you use [node:url] in any code, it must be in "" so for example

$path = [node:url];


is wrong, it must be

$path = "[node:url]";


As another solution

When you Set a data value you can use Value textarea and php codes to generate the node url. 

this is an example where I post a trimmed field_body and the node url to Facebook. If you need to post the node alias to Facebook, you can use 

$nid = [node:nid];
$path = drupal_get_path_alias('node/$nid');


to get the alias then print it in the &lt;?php segment.