Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
- Fixed setting a storage object
  • Loading branch information
samuelthomas2774 committed Jun 28, 2015
1 parent fdac586 commit f071310
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,10 @@ The OAuthFacebook class has some additional methods:
```
- To set a storage object:
```php
try { $object = $oauth->object("name", "value"); }
catch(Exception $error) { exit("samuelthomas.ml returned an error: {$error->getMessage()}\n"); }
print_r($object);
try {
if($oauth->object("name", "value")) echo "Updated storage object.\n";
else echo "Error updating storage object.\n";
} catch(Exception $error) { exit("samuelthomas.ml returned an error: {$error->getMessage()}\n"); }

```
- To delete a storage object:
Expand Down

0 comments on commit f071310

Please sign in to comment.