Maybe you can do

```js
Maybe we can do something like

//obj is "user"
//sdkMethod is "unlinkUserFromFacebook"

function matchURL(obj, sdkMethod, endpoint) {
  var model, params, method;
  var options = {};
  options['done'] = function(mod, p, m) {
    model = mod;
    params = p;
    method = m;
    return (params['url'].indexOf(endPoint) > -1).toEqual(true);
  };


  obj[sdkMethod](options);
}
```